File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Control the minimum size of a JFrame
Advice on how to implement this GUI ?
Which JScrollPane ?
JTabbedPane
Passed SCJD 380/400 = 95%