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 use the this code. showing "Update" msg but not update and if i add an item then show "Update" not "save"
Please help me.....
Private Sub Button14_Click(ByVal sender As ...
I would like to know if its possible to get the source path of a file copied/moved to a folder I set a FileSystemWatcher? What I mean is ...
I am new to C programming and as a part of an assignment I have made an ATM algorithm in C. Though the compiler shows no errors, the ...