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

No visible division between panel and its vertical scrollbar "trough" in Win L&F

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



      Name: krT82822 Date: 06/19/99


      6/19/99 kevin.ryan@eng -- still a problem as of JDK 1.2.2 RC1. Thought we had an existing bug re. this, but can't find it.
      ------------------

      orig synopsis: 'Panel disppears into scrollbar track using "Windows Standard" appearance'

      To reproduce the problem, execute the following steps:

      1. Open the display control panel.

      2. Select the "Appearance" tab of the control panel.

      3. Select the "Windows Standard" scheme,
      and press the "Apply" button.

      4. Execute the program listed below.


      The scrollbar track is the same color as the panel,
      and there are no borders on the scrollbars. This makes
      the scrollbar track disappear into the scrolled pane.


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


      public class TestApp3 extends JComponent
      {

      public static void main( String[] in )
      {
      try{ UIManager.setLookAndFeel(
      UIManager.getSystemLookAndFeelClassName() ); }
      catch( Exception e ) { }

      JPanel MyPan = new JPanel();
      MyPan.setMinimumSize( new Dimension( 2000 , 2000 ) );
      MyPan.setPreferredSize( new Dimension( 2000 , 2000 ) );

      JFrame MyFr = new JFrame();
      JComponent MyCr = new JScrollPane( MyPan ,
      ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED ,
      ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED );

      MyFr.getContentPane().setLayout( new BorderLayout( 0 , 0 ) );
      MyFr.getContentPane().add( "Center" , MyCr );

      MyCr.setMinimumSize( new Dimension( 400 , 400 ) );
      MyCr.setPreferredSize( new Dimension( 400 , 400 ) );

      MyFr.pack();
      MyFr.show();
      }


      }
      (Review ID: 53417)
      ======================================================================

            sswingtrsunw Swingtraq Swingtraq (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: