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

Changing pane in JColorChooser class makes no effect

XMLWordPrintable



      Name: kaC94536 Date: 11/19/99



      Java 2 Platform SE v1.3 specification reads:

      ...
      JColorChooser provides a pane of controls designed to allow a user to
      manipulate and select a color.
      ...

      The following test creates a JColorChooser instance in Frame container.
      Changing current pane makes no effect. Pane remains the same. But if
      you change frame size, objects on the pane will change to what is expected.

      This bug affects api/javax_swing/interactive/JColorChooserTests.html JCK test.

      ----------------------------- test.java ------------------------
      import java.awt.Frame;
      import javax.swing.JColorChooser;

      public class Test {
         static Frame testFrame = null;
         static JColorChooser chooser = null;

         public static void main( String[] argv ) {
              testFrame= new Frame();
              chooser= new JColorChooser();

              testFrame.add(chooser);
              testFrame.setSize(200,400);
              testFrame.setVisible(true);
         }
      }
      ======================================================================

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

            mdavidsosunw Mark Davidson (Inactive)
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: