List of usage examples for javax.swing JComponent addComponentListener
public synchronized void addComponentListener(ComponentListener l)
From source file:com.eviware.soapui.support.components.SimpleForm.java
public void append(JComponent component) { int spaceRowIndex = -1; if (rowSpacing > 0 && appended) { addSpace(rowSpacing);//www .j a v a 2 s .co m spaceRowIndex = layout.getRowCount(); } layout.appendRow(rowSpec); int row = layout.getRowCount(); panel.add(component, cc.xyw(DEFAULT_LABEL_COLUMN, row, 4)); component.addComponentListener(new LabelHider(null, spaceRowIndex)); appended = true; }