-
Enhancement
-
Resolution: Fixed
-
P2
-
7
-
b142
-
generic
-
generic
-
Verified
6907705 reveals a failing JCK test. The JTextField.setColumns() method doesn't update the JTextField size.
After discussing this issue with Swing and AWT teams, it is clear that a fix for 6852592 is slightly incomplete. The fix introduces 'validate roots' concept in AWT - containers on which the invalidate() operation stops. However, it doesn't provide a way for the developer to quickly identify a validate root, so that a subsequent validate() method call could be performed on the correct component (i.e. the nearest validate root).
Swing already has a method JComponent.revalidate() which does just that. And 6907705 could be fixed by calling revalidate() on the parent of the JTextField. However, since JComponent.getContainer() returns a Container, and the JTextField could be placed in a non-Swing container, we can't simply use the revalidate() Swing machinery.
This RFE proposes to implement the Component.revalidate() method.
After discussing this issue with Swing and AWT teams, it is clear that a fix for 6852592 is slightly incomplete. The fix introduces 'validate roots' concept in AWT - containers on which the invalidate() operation stops. However, it doesn't provide a way for the developer to quickly identify a validate root, so that a subsequent validate() method call could be performed on the correct component (i.e. the nearest validate root).
Swing already has a method JComponent.revalidate() which does just that. And 6907705 could be fixed by calling revalidate() on the parent of the JTextField. However, since JComponent.getContainer() returns a Container, and the JTextField could be placed in a non-Swing container, we can't simply use the revalidate() Swing machinery.
This RFE proposes to implement the Component.revalidate() method.
- relates to
-
JDK-6907705 fixing - #6852592: "invalidate() must be smarter" revealed problem with JTree
- Closed
-
JDK-6973780 JCK manual case JTextFieldTests.html#JTextField fails in jdk7 b100
- Closed
-
JDK-7037453 Clarify specification for Component.revalidate() and other validity- and mixing-related methods
- Open
-
JDK-6852592 invalidate() must be smarter
- Resolved