I have explaind the best I can on that place
Type: Posts; User: klskl
I have explaind the best I can on that place
Hello, I need to write some objects to a file, then when I 'read' them back to the program, they have to be exactly the same, they have to be the same kind of objects, with the same name and...
Yeah, this is what I'm talking about! I can do the printer example, since they show exactly how it's done, but I cant even begin to figure out how I would make a banksystem ..
It's okey! Hold it whit them answers!! I figured it out, I added new 'account servers' ... ex: AccountServer klskl = new AccountServer, then set name with 'Naming'.
But feel free to come with help...
Thx guys for all help! I have alot left to do, but I think I can manage from here useing what you showed me!
Well, if I have the listeners like this:
public JMenu createMenu3(String Save) {
JMenu m = new HorizontalMenu(Save);
m.add(" Save...
Well, i will try and see if it works, then maybe work around it later, since I wanna move on, thanks!
--- Update ---
But . . .
public void actionPerformed(ActionEvent e) {...
I see alot of addActionListener(this) but, I have to do something in the popupmenu? What is the easiets way to get
System.exit(0); under 'createmenu3' " Exit"
public JMenu...
Thats just it, I can't, whatever I do I don't get diffrent options, I can make a new MenuBar for each create, view and save, but then I can place them under eachother.
When I do several createMenu,...
It's like this:
public JMenuBar createMenuBar() {
JMenuBar menuBar = new JMenuBar();
menuBar.setLayout(new BoxLayout(menuBar, BoxLayout.PAGE_AXIS));
...
Yeah I did alot of that last night, but I never found a good solution, except maybe 'JmenuBar' , but I ran into a problem there, it was like this:
menu1 - item1 in menu1 - item2 in menu1 -item3 in...
I have been looking at the JOptionPane solution, and it looks really good, so thanks!
But, I was thinking, what is the best way to display my 'menu'? , is it simply alot of buttons, or is there a...
I will try it out
As for the oracle guides, i've read them, but I don't seem to come to terms with them, but I will continue trying ofcourse, It's just that part with user input that bothers me
Hello there! So I've got this program over registerd animals in a zoo, the idea is that when an animal is 'created' and added in a room, it gets saved into a registry, I know my code isn't the...
okey, well it's fine, I'll read some, it's not that urgent, thx anyway!
What do you mean 'disk file'?
All I want is to make it readable outside eclipse
deserialize makes it possible to 'load' a list when you start a program, yes? I will look at that, but not really what I need at this moment.
yes, exactly, can I make a file containing text?
Hello, I used 'Serializable' on an arraylist, to save as a txt file, how do I make it 'readable' ? right now when I open the file it's just jibberish
oh! I suck at Java, so help me in english :D
...
Hello, Is there a way to insert one value of an araryList into another ArrayList?
One arraylist will be printed, the user should chose what value he wants to be inserted into another arraylist...
Wow, thanks, super helpful! I've accually gotten quite a bit on the rest of my code since my last post, so this was sweet, maybe it will become something in the end after all ;D thanks again.
Well I have alittle, I don't know if im on the right track or anything, but here it is
It's just a few rooms, with like.. a boolean, then it prints out everything, what I would like is for it to...
Hello, I'm getting depressed over here, can't get anything done, so I figured I'd post one of my problems here, to see what happends.
Let's say I have this hotel, and I want to see what rooms are...