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

Window.hide() and Window.show() should be deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.0
    • docs
    • b30
    • generic
    • generic

      (This is simply a spec consistency issue.)

      Component.hide() and Component.show() are marked as deprecated, but Window.hide() and Window.show() are not. This appears to merely be the result of an oversight when these methods were overridden. Since they are not deprecated, it gives the impression that these methods do something different than what Window.setVisible(true/false) would do, which is not the case.

      Although this is not a critical issue, I regularly receive inquiries about it from external spec reviewers, so it is causing some bit of confusion. It would be helpful if these methods were simply marked as "deprecated" for the sake of consistency.

      ###@###.### 2002-05-21

            sharonz Sharon Zakhour (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: