You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/11/24 14:30:06 UTC

[jira] Commented: (HARMONY-2314) [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling

    [ 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