You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/12/08 16:41:24 UTC

[jira] Created: (HARMONY-2557) [classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used

[classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used
---------------------------------------------------------------------------

                 Key: HARMONY-2557
                 URL: http://issues.apache.org/jira/browse/HARMONY-2557
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexey A. Ivanov
            Priority: Minor


Harmony implementation of JScrollBar, its Metal UI, does not use L&F key "ScrollBar.allowsAbsolutePositioning".

If the value of this property is true, clicking scroll bar with middle button (or the third button) moves the thumb to where the mouse is.
See the description of JScrollBar properties at http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html

-- 
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] Commented: (HARMONY-2557) [classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2557?page=comments#action_12456888 ] 
            
Alexey A. Ivanov commented on HARMONY-2557:
-------------------------------------------

The default value for "ScrollBar.allowsAbsolutePositioning" is true in RI whereas the doc above states it's false.

> [classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2557
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2557
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>
> Harmony implementation of JScrollBar, its Metal UI, does not use L&F key "ScrollBar.allowsAbsolutePositioning".
> If the value of this property is true, clicking scroll bar with middle button (or the third button) moves the thumb to where the mouse is.
> See the description of JScrollBar properties at http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html

-- 
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-2557) [classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2557?page=all ]

Alexey A. Ivanov updated HARMONY-2557:
--------------------------------------

    Attachment: HTest2557.java

A simple application where you can test the behavior described. Click the track of the scroll bar with middle mouse button:
* nothing happens when run on Harmony;
* the thumb jumps to mouse location on RI.


Harmony implementation also has the value for "ScrollBar.allowsAbsolutePositioning" L&F key, and it is true. However, it isn't used.

To check it's already present, add

System.out.println(UIManager.get("ScrollBar.allowsAbsolutePositioning"));

before the value is put to UIManager (it's just be to be sure). If you set the value to Boolean.FALSE, nothing will happen when you click the track with middle mouse button on RI too.

> [classlib][swing] "ScrollBar.allowsAbsolutePositioning" L&F key is not used
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2557
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2557
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>         Attachments: HTest2557.java
>
>
> Harmony implementation of JScrollBar, its Metal UI, does not use L&F key "ScrollBar.allowsAbsolutePositioning".
> If the value of this property is true, clicking scroll bar with middle button (or the third button) moves the thumb to where the mouse is.
> See the description of JScrollBar properties at http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html

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