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

          webbuggrp Webbug Group created issue -
          aivanov Alexey Ivanov made changes -
          Field Original Value New Value
          Project Java Incidents [ 10301 ] JDK [ 10100 ]
          Key JI-9011372 JDK-8039464
          Workflow JBS Incident Workflow [ 4721827 ] JBS Workflow [ 4723351 ]
          Affects Version/s 7u51 [ 15602 ]
          Affects Version/s 7u51 [ 16011 ]
          Component/s client-libs [ 10307 ]
          Component/s client-libs [ 10700 ]
          aivanov Alexey Ivanov made changes -
          Subcomponent javax.swing [ 490 ] javax.swing [ 206 ]
          vdyakov Victor Dyakov made changes -
          Assignee Sergey Malenkov [ malenkov ]
          malenkov Sergey Malenkov (Inactive) made changes -
          Status New [ 10000 ] Open [ 1 ]
          malenkov Sergey Malenkov (Inactive) made changes -
          Attachment Thumb.jpg [ 19638 ]
          malenkov Sergey Malenkov (Inactive) made changes -
          Attachment TestScrollBarThumb.java [ 19639 ]
          malenkov Sergey Malenkov (Inactive) made changes -
          Affects Version/s 8 [ 11815 ]
          Affects Version/s 9 [ 14949 ]
          malenkov Sergey Malenkov (Inactive) made changes -
          Fix Version/s 9 [ 14949 ]
          vdyakov Victor Dyakov made changes -
          Fix Version/s 8u20 [ 16304 ]
          Fix Version/s 9 [ 14949 ]
          vdyakov Victor Dyakov made changes -
          Fix Version/s 9 [ 14949 ]
          Fix Version/s 8u20 [ 16304 ]
          vdyakov Victor Dyakov made changes -
          Fix Version/s 8u20 [ 16304 ]
          Fix Version/s 9 [ 14949 ]
          vdyakov Victor Dyakov made changes -
          Affects Version/s 8u20 [ 16304 ]
          vdyakov Victor Dyakov made changes -
          Affects Version/s 8u20 [ 16304 ]
          vdyakov Victor Dyakov made changes -
          Fix Version/s 9 [ 14949 ]
          Fix Version/s 8u20 [ 16304 ]
          vdyakov Victor Dyakov made changes -
          Fix Version/s 8u20 [ 16304 ]
          Fix Version/s 9 [ 14949 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8041643 [ JDK-8041643 ]
          hgupdate HG Updates made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolved In Build team [ 17324 ]
          Resolution Fixed [ 1 ]
          hgupdate HG Updates made changes -
          Resolved In Build team [ 17324 ] master [ 18256 ]
          hgupdate HG Updates made changes -
          Resolved In Build master [ 18256 ] b13 [ 17339 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8045742 [ JDK-8045742 ]
          hgupdate HG Updates made changes -
          Link This issue backported by JDK-8053571 [ JDK-8053571 ]

            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: