• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing JSplitPane

 
Rani Vish
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> what should i do ?

read this first

http://java.sun.com/products/jfc/tsc/articles/mixing/

then replace awt.canvas with a JPanel (and it's paintComponent())
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic