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:09:03 UTC

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

[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

        

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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov reassigned HARMONY-2314:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Alexei Zakharov
>         Attachments: ScrollbarStateController.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467340 ] 

Alexei Zakharov commented on HARMONY-2314:
------------------------------------------

This relates to Windows only. RI behaves exactly as Harmony under X11. So I suppose Harmony's behavior is more consistent - same on both platforms. Moreover, attached patch doesn't fix  anything. So I am going to close this bug as invalid.

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Alexei Zakharov
>         Attachments: ScrollbarStateController.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2314:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: ScrollbarStateController.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Pavlenko updated HARMONY-2314:
-------------------------------------

    Attachment: ScrollbarStateController.patch

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: ScrollbarStateController.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov closed HARMONY-2314.
------------------------------------

    Resolution: Invalid

closed as invalid

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Alexei Zakharov
>         Attachments: ScrollbarStateController.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463546 ] 

Andrey Pavlenko commented on HARMONY-2314:
------------------------------------------

The patch is attached.
Please mark the issue as "Patch Available".

> [classlib][awt] Scrollbar: mouse and keyboard events simultaneous handling
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2314
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2314
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: ScrollbarStateController.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira