harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2665) [classlib][swing] javax.swing.JSplitPane initializes divider position before being shown (unlike RI)
Date Wed, 13 Dec 2006 12:07:21 GMT
[classlib][swing] javax.swing.JSplitPane initializes divider position before being shown (unlike

                 Key: HARMONY-2665
                 URL: http://issues.apache.org/jira/browse/HARMONY-2665
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev

javax.swing.JSplitPane.getDividerLocation() returns 92 while RI returns -1.
javax.swing.JSplitPane.getLastDividerLocation() returns 91 while RI returns 0.
Compatibility issue.

Use the following code to reproduce:

import javax.swing.JSplitPane;

import junit.framework.TestCase;

public class Test extends TestCase {       
    public void testcase1() {
        JSplitPane s = new JSplitPane();
        assertEquals(-1, s.getDividerLocation());
    public void testcase2() {
        JSplitPane s = new JSplitPane();
        assertEquals(0, s.getLastDividerLocation());

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message