List of usage examples for java.awt Component isValid
public boolean isValid()
From source file:Main.java
public static String formateComponentInfosToPrint(Component comp) { StringBuilder buf = new StringBuilder(); buf.append(comp.getClass().getSimpleName()); buf.append(" ["); buf.append(comp.getName());/* w w w . j a v a2 s . c o m*/ if (comp instanceof JLabel) buf.append(",\"").append(((JLabel) comp).getText()).append("\""); buf.append(","); buf.append(comp.getClass().getName()); buf.append(","); buf.append(comp.isVisible() ? "visible" : "not visible"); buf.append(","); buf.append(comp.isValid() ? "valid" : "invalid"); buf.append("]"); return buf.toString(); }