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

The scrollbar in JScrollPane has no right border if used WindowsLookAndFeel

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u51, 8, 9
    • Fix Version/s: 8u20
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      x86_64
    • OS:
      windows_7

      Backports

        Description

        FULL PRODUCT VERSION :
        1.7 u51

        ADDITIONAL OS VERSION INFORMATION :
        Windows 7 64

        A DESCRIPTION OF THE PROBLEM :
        When the JScrollPane a lot of item and the scrollbar small is
        the right border of the scrollbar di not show.

        REGRESSION. Last worked in version 7u51

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Here is a simple Applet that show the problem

        import javax.swing.JApplet;
        import javax.swing.JScrollPane;
        import javax.swing.JTextArea;
        import javax.swing.UIManager;
        import javax.swing.UnsupportedLookAndFeelException;

        public class ScrollbarApplet extends JApplet

        {
        public void init()
        {
        try {
        UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        }
        catch (InstantiationException e) {}
        catch (ClassNotFoundException e) {}
        catch (UnsupportedLookAndFeelException e) {}
        catch (IllegalAccessException e) {}

        JTextArea textArea = new JTextArea(5, 2000);
        JScrollPane pane = new JScrollPane(textArea);
        this.add(pane);
        }
        }

        ACTUAL -
        The small horizontal scrollbar has no right border

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javax.swing.JApplet;
        import javax.swing.JScrollPane;
        import javax.swing.JTextArea;
        import javax.swing.UIManager;
        import javax.swing.UnsupportedLookAndFeelException;

        public class ScrollbarApplet extends JApplet

        {
        public void init()
        {
        try {
        UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        }
        catch (InstantiationException e) {}
        catch (ClassNotFoundException e) {}
        catch (UnsupportedLookAndFeelException e) {}
        catch (IllegalAccessException e) {}

        JTextArea textArea = new JTextArea(5, 2000);
        JScrollPane pane = new JScrollPane(textArea);
        this.add(pane);
        }
        }
        ---------- END SOURCE ----------

        1. TestScrollBarThumb.java
          0.6 kB
          Sergey Malenkov
        1. Thumb.jpg
          6 kB

          Activity

          Hide
          vdyakov Victor Dyakov added a comment -
          is it reproducible on 8 ?
          Show
          vdyakov Victor Dyakov added a comment - is it reproducible on 8 ?
          Hide
          malenkov Sergey Malenkov (Inactive) added a comment - - edited
          It is reproducible with the Windows L&F on jdk8b129 and jdk9 (custom build).
          Show
          malenkov Sergey Malenkov (Inactive) added a comment - - edited It is reproducible with the Windows L&F on jdk8b129 and jdk9 (custom build).
          Show
          malenkov Sergey Malenkov (Inactive) added a comment - http://cr.openjdk.java.net/~malenkov/8039464.9.1/
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/7dc85a81a8dd
          User: malenkov
          Date: 2014-04-25 17:03:22 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/7dc85a81a8dd User: malenkov Date: 2014-04-25 17:03:22 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/7dc85a81a8dd
          User: lana
          Date: 2014-05-05 17:28:41 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/7dc85a81a8dd User: lana Date: 2014-05-05 17:28:41 +0000

            People

            • Assignee:
              malenkov Sergey Malenkov (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: