Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73575 invoked from network); 17 Jul 2007 08:35:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2007 08:35:11 -0000 Received: (qmail 37812 invoked by uid 500); 17 Jul 2007 08:04:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 37781 invoked by uid 500); 17 Jul 2007 08:04:28 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 37750 invoked by uid 99); 17 Jul 2007 08:04:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 01:04:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 01:04:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 24F3F4297CF for ; Tue, 17 Jul 2007 01:04:05 -0700 (PDT) Message-ID: <4431668.1184659445148.JavaMail.jira@brutus> Date: Tue, 17 Jul 2007 01:04:05 -0700 (PDT) From: "Dmitry Irlyanov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4480) [classlib][swing] JSlider scrolls if it's unneded In-Reply-To: <27352702.1184659224516.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Irlyanov updated HARMONY-4480: ------------------------------------- Attachment: (was: H's.gif) > [classlib][swing] JSlider scrolls if it's unneded > ------------------------------------------------- > > Key: HARMONY-4480 > URL: https://issues.apache.org/jira/browse/HARMONY-4480 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Dmitry Irlyanov > Priority: Minor > > The JSlider behavior in RI and in Harmony is different. If one press the mouse button and holds it for a time Harmony's slider thumb will move around mouse pointer, but RI's slider won't. > This behavior represented by The following test: > import javax.swing.JFrame; > import javax.swing.JSlider; > import javax.swing.SwingConstants; > import javax.swing.UIDefaults; > import javax.swing.UIManager; > import javax.swing.UnsupportedLookAndFeelException; > import javax.swing.plaf.metal.MetalLookAndFeel; > public class SliderTest { > public static void main(String[] args) > throws UnsupportedLookAndFeelException { > // Set up the look and feel to return BasicSliderUI > UIManager.setLookAndFeel(new MetalLookAndFeel() { > @Override > protected void initClassDefaults(UIDefaults uiDefs) { > super.initClassDefaults(uiDefs); > uiDefs.put("SliderUI", "javax.swing.plaf.basic.BasicSliderUI"); //$NON-NLS-1$//$NON-NLS-2$ > } > }); > JFrame frame = new JFrame("Test"); //$NON-NLS-1$ > frame.add(new JSlider(SwingConstants.HORIZONTAL, 0, 100, 50)); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > frame.setSize(300, 150); > frame.setVisible(true); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.