Hi i'm creating a GUI and i have a couple menu items set up with options within those menus. What I'm looking to do is use those items inside the menus to open up more menus kinda like when you go down to all programs in your start menu and it opens another menu beyond that. i can post my code for my menu that i have right now it it would help
If I have this right, you want to have a menu and then another menu, ect.
e.g.: File->Open->New->Red Window
If that's the case you just need to assign the menu(s) or menu item(s) to the original
e.g. (Sorry if this compiles with errors, I just typed is out without running it):
JMenu fileMenu = new JMenu("File"); JMenu fileOpen = new JMenu("Open"); JMenu openNew = new JMenu("New"); JMenuItem newRedWindow = new JMenuItem("Red Window"); // Now add it to each other // Adding: newRedWindow to openNew, openNew to fileOpen, fileOpen to fileMenu openNew.add(newRedWindow); fileOpen.add(openNew); fileMenu.add(fileOpen);
Hope this is what you are looking for!
Hi. I have a .raw file and I want to display it as hex. why? because i want to try and replicate what 010 Editor can do which is read ...
I was wondering what would be the best way to implement an algorythm to figure out what side a circle has collided with a rectangle?
After check to make sure ...
I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it ...