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

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

    XMLWordPrintable

Details

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

    Description

      ###@###.### 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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Imported:
              Indexed: