Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSplitPane

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a split pane which is divided into four panes. These panes are divided horizontally. The third pane contains a question and answer field. The user will press a Next button after entering the answer. When the user presses the next button the whole pane should not be disposed only the question and answer in the third pane should be erased and new question and answer field should appear in that pane. How can we do this? How can we get a particular pane from a split pane?
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vallabhaneni,

Add your question/answer fields to JPanels and then add them to the parts of the split pane. That way you can remove () the panel and add another panel to the split pane.

Ed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic