Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Swing / AWT / SWT
JMenuItems
Chase Bond
Greenhorn
Posts: 3
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to write a GUI that has a menu, with JMenuItems, and JMenuItems inside JMenuItems. But every time I try to add JMenuItems to JMenuItems they overwrite the name of the previous JMenuItem. How can I fix this problem?
Rob Spoor
Sheriff
Posts: 22862
132
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use JMenus as JMenuItem containers. JMenu extends JMenuItem so you can use a JMenu everywhere you can use a JMenuItem.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Chase Bond
Greenhorn
Posts: 3
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks. I am new at this so can you show me how I could use it as a container?
Chase Bond
Greenhorn
Posts: 3
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Never Mind my last comment I just figured it out. Thanks anyways!
Michael Dunn
Ranch Hand
Posts: 4632
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Static blocks
JMenu items creating problems
Wow 98% : I made it with your wishes!!!
Any body implemented File Drag and Drop with GWT?
how to create tablespace in java dbms
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...