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

HeadlessException in KFM on JButton creation with

    Details

    • Subcomponent:
    • Introduced In Build:
      b55
    • Introduced In Version:
      7
    • CPU:
      generic
    • OS:
      linux

      Description

      Following test

      public class TestH {
          public static void main(String[] args) {
             new javax.swing.JButton();
          }
      }

      throws HeadlessException with latest JDK7 in the headless (-Djava.awt.headless=true) mode:
      Exception in thread "main" java.awt.HeadlessException
      at sun.awt.HeadlessToolkit.createKeyboardFocusManagerPeer(HeadlessToolkit.java:184)
      at java.awt.KeyboardFocusManager.initPeer(KeyboardFocusManager.java:454)
      at java.awt.KeyboardFocusManager.<init>(KeyboardFocusManager.java:448)
      at java.awt.DefaultKeyboardFocusManager.<init>(DefaultKeyboardFocusManager.java:64)
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:218)
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:209)
      at javax.swing.UIManager.initialize(UIManager.java:1442)
      at javax.swing.UIManager.maybeInitialize(UIManager.java:1421)
      at javax.swing.UIManager.getUI(UIManager.java:1009)
      at javax.swing.JButton.updateUI(JButton.java:146)
      at javax.swing.AbstractButton.init(AbstractButton.java:2169)
      at javax.swing.JButton.<init>(JButton.java:136)
      at javax.swing.JButton.<init>(JButton.java:90)
      at TestH.main(TestH.java:3)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                dav Andrei Dmitriev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: