You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2008/01/13 09:52:35 UTC

[jira] Commented: (HARMONY-4730) [classlib][swing]Vertical slider doesn't scroll itself

    [ https://issues.apache.org/jira/browse/HARMONY-4730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558366#action_12558366 ] 

Mark Hindess commented on HARMONY-4730:
---------------------------------------

I've been testing the behaviour with:

import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JSlider;
import javax.swing.plaf.basic.BasicSliderUI;

public class SliderTester extends JFrame {
        public SliderTester() {
                super("Slider Tester");
                getContentPane().setLayout(new FlowLayout());
                JSlider slider = new JSlider(JSlider.VERTICAL, 1, 1000, 400);
                slider.setUI(new javax.swing.plaf.basic.BasicSliderUI(slider));
                getContentPane().add(slider);
                slider = new JSlider(JSlider.HORIZONTAL, 1, 1000, 400);
                slider.setUI(new javax.swing.plaf.basic.BasicSliderUI(slider));
                getContentPane().add(slider);
        }
        public static void main(String args[]) {
                SliderTester f = new SliderTester();
                f.setSize(300, 300);
                f.show();
        }
}

Dmitry,  for me the behaviour without the patch seems correct if you click one or more times both for horizontal and vertical sliders.

The behaviour with (or without) the patch seems incorrect if you press and hold the mouse button down.  The behaviour in RI seems to be that the slider moves in slow jumps until it is just beyond the position that you clicked and held the pointer.
However of the four case (mouse to the left/right/above/below the slider position) only the case where the mouse is clicked below the slider position works as I'd expect.




> [classlib][swing]Vertical slider doesn't scroll itself
> ------------------------------------------------------
>
>                 Key: HARMONY-4730
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4730
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitry Irlyanov
>            Priority: Minor
>         Attachments: H4730-BasicSliderUI.patch
>
>
> If press the mouse pointer somewhere in the slider track, the slider thumb moves. For Harmony's vertical sliders it doesn't occur

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.