Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu based swing application

 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic