Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes Menu based swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Menu based swing application" Watch "Menu based swing application" New topic
Author

Menu based swing application

Narayanan Jayaraman
Ranch Hand

Joined: Apr 09, 2003
Posts: 52
What is the good practice/design for swing based menu application. I mean, based on menu selection I would like to display new screen /panel with in that frame. What is the best appraoch for this ?. Do I have to create multiple panels and attach to JFrameContentPane and make visible depends on menu selection ? If so , Is it possible to do that ?. or is there any other way. Appreciate your help. Thanks !!
Poorna Lakki
Greenhorn

Joined: Mar 04, 2003
Posts: 11
Originally posted by Narayanan Jayaraman:
What is the good practice/design for swing based menu application. I mean, based on menu selection I would like to display new screen /panel with in that frame. What is the best appraoch for this ?. Do I have to create multiple panels and attach to JFrameContentPane and make visible depends on menu selection ? If so , Is it possible to do that ?. or is there any other way. Appreciate your help. Thanks !!

Try using card layout. Its simple and works well for things u described.
Thanks,-Poorna Lakki
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Menu based swing application
 
Similar Threads
IFRAME
Desining Expplorer Bar
Open browser/web page from a swing app
Dont want a CheckBox and a radio button selected state to be reset when Restart the application
How to get user input?