This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JSplitPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JSplitPane" Watch "JSplitPane" New topic
Author

JSplitPane

Vallabhaneni Suresh Kumar
Ranch Hand

Joined: Mar 01, 2004
Posts: 68
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

Joined: Mar 18, 2003
Posts: 281
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


The nice thing about Standards is that there are so many to choose from!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSplitPane