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

JOptionPane dialog appearing in different theme when default LAF decoration is turned on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs

      I have turned on default LAF decorations for JFrame and JDialog. I am showing a frame with a couple of buttons. On clicking the buttons, I am opening up a JDialog and an input dialog from JOptionPane. The dialog opened by JOptionPane is using a different theme and not the default theme used by JDialog or JFrame. This looks very odd.

      This is reproducible atleast since 1.4.2 on all platforms.

      I have attached a sample test. Execute the sample test and you will get the frame mentioned above. Click on the buttons and compare the JOptionPane with JDialog. JOptionPane will appear in green color.

            shickeysunw Shannon Hickey (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: