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

Cannot set button as default until it has been added to root pane

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs

      ###@###.### 2002-02-19

      -- A minor inconvenience is that one apparently cannot use
      myJButton.getRootPane().setDefaultButton(myJButton) to set the default
      button while constructing a JInternalFrame, since the button apparently does
      not yet know what its root pane is.

      Since root panes (and not buttons)control default-ness, it's inconvenient
      when trying to manage default-ness during the constructor of a JInternalFrame
      (adding a button to the content pane apparently does not immediately make
      root pane aware of the button).

            Unassigned Unassigned
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: