JDK-8180209 : un-deprecate AWT Component.hide and show
  • Type: Sub-task
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2017-05-11
  • Updated: 2017-05-11
  • Resolved: 2017-05-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_majorResolved
Description
These methods were deprecated in favor of the setVisible(boolean) method, which was added for beans compatibility. However, hide and show can never be removed because subclasses rely on them. There is no benefit for applications to migrate away from these methods, so might as well un-deprecate them.

There may be other deprecated methods that should be un-deprecated for similar reasons.
Comments
Note sure that it is a good thing to undeprecate them now. There are a bunch of the same methods like enable/disable/show/hide etc. - The new added methods usually have the similar getters, like setVisible/isVisible, setEnabled/isEnabled etc. - The new methods are correctly used as a properties by JavaBeans. - I guess most of the existed code ovverrides the new methods, and if the new application will use old show/hide etc it is not necessary will work in the same way as if it call the new methods.
11-05-2017