aspose file tools*
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
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