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

JColorChooser.getPreviewPanel() returnes null starting from jdk7 b105.

XMLWordPrintable

    • b105
    • 7
    • b112
    • generic, x86
    • generic, solaris
    • Verified

      JColorChooser.getPreviewPanel() returnes null starting from jdk7 b105.

      2 JCK7 tests are affected:
      api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#protected[BasicColorChooserUI2005]
      api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#public[BasicColorChooserUI0001]

      Following code demonstates the problem:

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

      public class test {
          public static void main(String argv[]) {
              JColorChooser colorChooser = new JColorChooser();
              colorChooser.getPreviewPanel().getForeground();
          }
      }

            malenkov Sergey Malenkov (Inactive)
            ephilipp Evgeny Philippov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: