i had a similar problem with setDividerLocation() on 1.2.2.  if i remember 
correctly, i actually had the problem both on linux and on solaris.

i was trying to set the divider location on a JSplitPane during 
initialization, and found that it didn't seem to do anything at all--the 
divider would just show up at a defult location no matter what i did.  on a 
suggestion from a friend, i tried moving the setDividerLocation() call from 
the constructor to addNotify():

public void addNotify() {
        super.addNotify();
        splitPane.setDividerLocation(...);
}

which worked much better.  

-allen

On Mon, Jun 19, 2000, 23:51, brEezE <[EMAIL PROTECTED]> wrote
>I have a JSplitPane both contains an JScrollPane on
>top and bottom part of the splitpane.
>
>When try to set the divider's location in v1.2.2 RC4,
>nothing seems to be happened. The same code works fine
>in v1.3.
>
>Is this a bug in v1.2.2?
>
>Thanks! 
>
>__________________________________________________
>Do You Yahoo!?
>Send instant messages with Yahoo! Messenger.
>http://im.yahoo.com/
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to