my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes Resizing JSplitPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizing JSplitPane" Watch "Resizing JSplitPane" New topic

Resizing JSplitPane

Rani Vish

Joined: Feb 03, 2006
Posts: 22
Hi Friends ,
Please give the solution for this,
I have a Frame with a JSplitPane as the main component. I have set the
JSplitPane to be OneTouchExpandable , and sets a AWT Canvas as upper element and JTextArea as lower Element, When I resize the one pane of
the JSplitPane horizontally,it goes down but never come up ,and awt canavs takes the spaces but never resize back ,what should i do ?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> what should i do ?

read this first

then replace awt.canvas with a JPanel (and it's paintComponent())
I agree. Here's the link:
subject: Resizing JSplitPane
It's not a secret anymore!