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!
I wonder if you can help me.
As I’m now doing java development as a profession now, I’ve realized that I’m a little weak when it comes to ...
Cache in local storage of browsers gets cleared when website page redirects from AliPay payment website. This is happening in some computers and working fine in some.
From my website ...
I´m not a professional in vb.net, but i try to make a tool for my colleague and me. I got a XMLTreeView on my form and i load a ...