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

JCK8's api/javax_swing/JDesktopPane/descriptions.html#getset failed with GTKLookAndFeel on Linux and Solaris run

    XMLWordPrintable

Details

    Backports

      Description

        The following code illustrates the problem observed with GTKLookAndFeel/JDK8+:
        ----------------------------------------------------------------------------------------
        import javax.swing.*;
        import static java.lang.System.out;

        public class JDP {
            public static void main(String[] args) {
                JDesktopPane pane = new JDesktopPane();
                out.println("frames = " + pane.getAllFrames().length);
                pane.add(new JInternalFrame());
                out.println("frames = " + pane.getAllFrames().length);
            }
        }
        ----------------------------------------------------------------------------------------


        When -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel is used for JDK8 the number of frames after adding a single frame is reported as 2.

        For JDK7 only a single frame is reported as present after adding.

        Minimized issue reproduced with Solaris and JDK8, JDK8u26 - and seems to be present in all 8 updates.
        Reported as visible with Linux by JCK QA.

        The following JCK8 testcases fail:
        api/javax_swing/JDesktopPane/descriptions.html#getset[JDesktopPane2005]
        api/javax_swing/JDesktopPane/descriptions.html#getset[JDesktopPane2006]

        (testcases are present in JCK7 as well http://jre.us.oracle.com/java/re/jck/7/promoted/latest/extra/mtl/jck-7-fcs-b59.mtl )

        --- Original report by JCK QA -----
        JDK 8 b129
        JCK 8a QAC b12

        Other Options
        -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

        Attachments

          Issue Links

            Activity

              People

                alexsch Alexandr Scherbatiy
                izlatkin Ilya Zlatkin (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: