harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2314) [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
Date Fri, 24 Nov 2006 13:30:06 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2314?page=comments#action_12452450 ] 
            
Denis Kishenko commented on HARMONY-2314:
-----------------------------------------

JFrame should be changed to Frame

============= Test ===========
import java.awt.Frame;
import java.awt.Scrollbar;

public class Test {
    public static void main(String[] args) {
        Frame f = new Frame();
        f.add(new Scrollbar(Scrollbar.HORIZONTAL));
        f.setSize(150, 60);
        f.setVisible(true);
    }
}



> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>
> Scrollbar handles mouse and keyboard events simultaneously, while RI doesn't , e.g. it's
possible 
> to scroll with mouse to one direction and with keyboard to another direction at 
> one time. It looks odd sometimes. Mouse and keyboard events should be handled 
> in mutual exclusion mode.
> ========== Test ===========
> import java.awt.Scrollbar;
> import javax.swing.JFrame;
> public class Test {
>     public static void main(String[] args) {
>         JFrame f = new JFrame();
>         Scrollbar sb = new Scrollbar(Scrollbar.HORIZONTAL); 
>         f.getContentPane().add(sb);
>         f.setSize(150, 60);
>         f.setVisible(true);
>     }
> }

-- 
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

        

Mime
View raw message