Thx guys for all help! I have alot left to do, but I think I can manage from here useing what you showed me!
Type: Posts; User: klskl
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...