JDK-7154030 : java.awt.Component.hide() does not repaint parent component
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-03-15
  • Updated: 2013-06-26
  • Resolved: 2012-05-09
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.
JDK 7 JDK 8
7u40Fixed 8 b38Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
Ubuntu 11.10

A DESCRIPTION OF THE PROBLEM :
If calling child component's hide() method, the child component does disappear as setVisible(false) did, once parent container got fully repainted, the child will really hide. So need to add addtional code to java.awt.Component.hide() to repaint special areas of parent container.

Although java.awt.Component.hide() was declared as deprecated, still some legacy applications from customer side need this uses this funtions, so it would be valuable if the problem can be fixed.


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION As discussed at awt-dev, it doesn't make sense to fix it in AWT and, likely, in Swing. Dispatching this bug to Swing so they make the final decision.
22-03-2012