Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6190801

XP L&F: No rollover effect on the JSlider component

    XMLWordPrintable

Details

    • b53
    • x86
    • windows_2000, windows_xp

    Backports

      Description

        In the Windows LAF on WinXP the system sliders has rollover effect while Swing JSlider misses it.

        Start following application:

        import javax.swing.*;
        import java.awt.*;

        public class SliderTest {
            public static void main(String[] args) {
                try {
                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                } catch(Exception ex) {
                    ex.printStackTrace();
                    System.exit(-1);
                }

                JFrame frame = new JFrame("Slider test");
                frame.setLayout(new BorderLayout());
                frame.add(new JSlider(), BorderLayout.CENTER);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.pack();
                frame.setVisible(true);
            }
        }

        And see that when mouse over the JSlider it does not highlight its marker like native sliders do.
        ###@###.### 11/4/04 16:56 GMT

        Attachments

          Issue Links

            Activity

              People

                bchristi Brent Christian
                kizune Alexander Zuev
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: