Hi, can anyone tell me how to create nested menus from a sub menu? shld i be declaring both sub and nested menus as JMenuItem or smthg else? thx in advance.
Hi, can anyone tell me how to create nested menus from a sub menu? shld i be declaring both sub and nested menus as JMenuItem or smthg else? thx in advance.
In what context? Is this a Swing GUI program? SWT? Console? What do you have so far?
Oh, and welcome to the forum.
Thx for ur reply. i'm using Swing GUI program. I already used JMenu for my main heading & JMenuItem for my sub headings. It works fine but when i tried to create a nested menus from sub heading, i got some errors when i used JMenuItem. Is there any other way to declare nested menus?
Have you read the API and followed the link to the Swing tutorial on "How to Use Menus" which contains a working example with sub menus?