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

Unexpected warning appears during ScrollPane resizing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs
    • x86
    • linux



      Name: iaR10016 Date: 02/15/2000



      The frame window of the folowing test contains ScrollPane component with Label component.
      ScrollPane has a horizontal scrollbar because its size is less then the label size. To
      reproduce the bug drug horizontal scrollbar's bubble to the right side of the scollbar. Then
      maximize the test frame window or resize it. While the Scrollpane's scrollbar does not become
      invisible during resizing, the following warnings appears in the standart output device:

      ...
      Warning:
          Name: VertScrollBar
          Class: XmScrollBar
          The specified scrollbar value is less than the minimum
          scrollbar value.
      ...
       
      This effect appears in Linux 1.2.2 JDK and in Solaris 1.2.2 JDK.

      --------------------test.java---------------------------------------------

      import java.awt.*;

      public class test extends Frame {
       public static void main(String[] args) {
          Frame aFrame = new Frame("ScrollPane test");
          Label aLabel = new Label("I am a Label in ScrollPane component!");
          ScrollPane aScrollPane = new ScrollPane();
          aScrollPane.add(aLabel);
          aFrame.add(aScrollPane, BorderLayout.CENTER);
          aFrame.setSize(new Dimension(200,100));
          aFrame.setVisible(true);
         }
      }

      ======================================================================

      ======================================================================

            xdengsunw Xianfa Deng (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: