Example usage for javax.swing JComponent addComponentListener

List of usage examples for javax.swing JComponent addComponentListener

Introduction

In this page you can find the example usage for javax.swing JComponent addComponentListener.

Prototype

public synchronized void addComponentListener(ComponentListener l) 

Source Link

Document

Adds the specified component listener to receive component events from this component.

Usage

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;
}