• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSplitPan�s Problem

 
Ikram Soomro
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can JSplitPane can be fixed at the particular position?
I have added JTree on the left of JSplitPane in JScrollPane. The nodes are being added in tree at runtime.
I am facing problem that if there is text bigger than original size of splitpan�s left component than the split bar increases its size as much as that text is added to it.

Thanks in advance.

Ikram Soomro
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the tree to a JScrollPane, and add that scrollpane to Left side of SplitPane.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!