aspose file tools*
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
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!
 
jQuery in Action, 2nd edition
 
subject: JSplitPane