Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPANEL  RSS feed

 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I've a interesting problem.Situation is like this.I've panelA,panleB,and panelC.Now i've a Dialog with layout being BorderLayout.In the North i've put a panel consisting of two JButtons named as "Next" and "Back".
Initialy Dialogbox center is occupied by panelA.Now if i click on "Next"(JButton),then the Dialog center should be occupied by panelB and panelC for the next click on "NEXT".
Opposite should happen when i click on "BACK" Jbutton .
I dont want to keep all the panels on the JDialog and make them visible or non-visible according to the press on the JButtons.
Please give me an idea to achive this.
thanx in advance
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Craig,
Thanks alot for making me to know by producing an examle.Code has made me aware how to achieve it.thanx once again
bye
prashu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!