harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Irlyanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4445) [classlib][swing] JSlider thumb can't move if JSlider.getMaximum()=Integer.MAX_VALUE
Date Thu, 12 Jul 2007 16:45:05 GMT
[classlib][swing] JSlider thumb can't move if JSlider.getMaximum()=Integer.MAX_VALUE
------------------------------------------------------------------------------------

                 Key: HARMONY-4445
                 URL: https://issues.apache.org/jira/browse/HARMONY-4445
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Dmitry Irlyanov
            Priority: Minor


JSlider thumb can't move if JSlider.getMaximum()=Integer.MAX_VALUE

The situation represented in the following test:

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JSlider;
import javax.swing.SwingConstants;

public class SliderTest {

    public static void main(String[] args) {

        JFrame frame = new JFrame("SliderTest"); //$NON-NLS-1$
        frame.setLayout(new GridLayout(2,1));
        frame.add(new JSlider(SwingConstants.HORIZONTAL, 0, Integer.MAX_VALUE,
                50));
        frame.add(new JSlider(SwingConstants.HORIZONTAL, 0, 100, 50));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(150, 100);
        frame.setVisible(true);

    }

}

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


Mime
View raw message