harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4730) [classlib][swing]Vertical slider doesn't scroll itself
Date Sun, 13 Jan 2008 08:52:35 GMT

    [ 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));
                slider = new JSlider(JSlider.HORIZONTAL, 1, 1000, 400);
                slider.setUI(new javax.swing.plaf.basic.BasicSliderUI(slider));
        public static void main(String args[]) {
                SliderTester f = new SliderTester();
                f.setSize(300, 300);

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.

View raw message