Why does JSplitPane automatically set its location?

A

Allen

There is a tree in the left container of JSplitPane. When the tree
loads data nodes, the split pane will
automatically set its location to avoid tree container displaying
horizontal scroll bar.

I want to turn this function off. Pls tell me how to do it. Thank you.
 
A

Allen

Allen said:
There is a tree in the left container of JSplitPane. When the tree
loads data nodes, the split pane will
automatically set its location to avoid tree container displaying
horizontal scroll bar.

I want to turn this function off. Pls tell me how to do it. Thank you.

Sorry. It is because I call JSplitPane.resetToPreferredSizes();
I forget this call. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top