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

There is no way to disable & then re-enable the minimize button on a JFrame

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 6
    • client-libs
    • Fix Understood
    • x86
    • windows_xp



      Name: jl125535 Date: 12/08/2003


      A DESCRIPTION OF THE REQUEST :
      There is no way to disable & then re-enable the minimize button on a JFrame. It would appear there are mechanisms to remove the minimize button (et al) before you first show the JFrame, however, once the JFrame is shown there is no way (using the same mechanisms) to put the minimize button back. The solution would be to disable & then re-enable the minimize button however this appears to be impossible for the current JDK 1.4.2. Why?????

      JUSTIFICATION :
      The internet is littered with people asking for similar functionality. It would appear to be a basic requirement for a mature GUI interface to allow this level of control.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would expect to be able disable & then re-enable the minimize button on a JFrame at anytime just like I can call setEnabled(false/true) virtually at any time I like on a normal Component.
      ACTUAL -
      There does not appear to be an API interface that allows the expected behaviour. I tried using setResizable(false/true) but this has no effect on the minimize button of a JFrame.

      (Incident Review ID: 228069)
      ======================================================================

            anthony Anthony Petrov (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: