The following code in a constructor does not always work...
JSplitPane split = new...
Runnable run = new Runnable() {
public void run(){
split.setDividerLocation( .5 );
}
};
SwingUtilities.invokeLater( run );
I don't remember if I read somewhere that setDividerLocation should
be in the event thread or if I just tried it because it didn't
work the other way.
In any case, this only works sometimes. Other times I get
the 2nd component completely filling the pane (i.e. divider
location set to 0).
Seems to be some sort of race condition, but I can't glean
what is racing.
Any thoughts?
... Roger
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing