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

JToolbar.createActionComponent(Action) returns disabled JButton if null passed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta2
    • sparc
    • solaris_2.6



      Name: asR10047 Date: 07/09/2001


      JavaDoc for JToolBar.createActionComponent(Action a) says the method
      creates the JButton for Actions added to the JToolBar and sets empty
      title if an action specified is null. But it says nothing whether JButton
      returned will be enabled or not.

      As long as the specification keeps silent the general rules take place.
      According to javadoc comments for java.awt.Component.isEnabled()
      all components are enabled initially by default and it is legal to expect
      that returned JButton will be enabled as well.


      If development team likes to keep current behavior please update
      the documentation.


      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            anssunw Ans Ans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: