File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu based swing application

 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic