harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2665) [classlib][swing] javax.swing.JSplitPane initializes divider position before being shown (unlike RI)
Date Tue, 16 Jan 2007 00:58:27 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465020
] 

Vasily Zakharov commented on HARMONY-2665:
------------------------------------------

I couldn't find a reasonable way to resolve this issue.

I'm giving this up hoping someone confident in Swing would look into it.


> [classlib][swing] javax.swing.JSplitPane initializes divider position before being shown
(unlike RI)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2665
>                 URL: https://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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message