jdk/src/share/classes/javax/swing/JTextField.java
changeset 4278 b7a976422d27
parent 3737 83fb4621a129
child 4284 12d5126755c0
equal deleted inserted replaced
4277:9b3f8c82d5c0 4278:b7a976422d27
   288      *
   288      *
   289      * @see JComponent#revalidate
   289      * @see JComponent#revalidate
   290      * @see JComponent#isValidateRoot
   290      * @see JComponent#isValidateRoot
   291      */
   291      */
   292     public boolean isValidateRoot() {
   292     public boolean isValidateRoot() {
   293         return SwingUtilities2.getViewport(this) == null;
   293         return SwingUtilities.getParentViewport(this) == null;
   294     }
   294     }
   295 
   295 
   296 
   296 
   297     /**
   297     /**
   298      * Returns the horizontal alignment of the text.
   298      * Returns the horizontal alignment of the text.