Java Code Examples for javax.swing.JComponent.addComponentListener()

The following are Jave code examples for showing how to use addComponentListener() of the javax.swing.JComponent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: MaxSim   File: ExtendedSatelliteComponent.java   View Source Code Vote up 5 votes
@Override
public void addNotify() {
    super.addNotify();
    scene.addSceneListener(this);
    JComponent viewComponent = scene.getView();
    if (viewComponent == null) {
        viewComponent = scene.createView();
    }
    viewComponent.addComponentListener(this);
    repaint();
}
 
Example 2
Project: MaxSim   File: ExtendedSatelliteComponent.java   View Source Code Vote up 5 votes
@Override
public void addNotify() {
    super.addNotify();
    scene.addSceneListener(this);
    JComponent viewComponent = scene.getView();
    if (viewComponent == null) {
        viewComponent = scene.createView();
    }
    viewComponent.addComponentListener(this);
    repaint();
}
 
Example 3
Project: MaxSim   File: ExtendedSatelliteComponent.java   View Source Code Vote up 5 votes
@Override
public void addNotify() {
    super.addNotify();
    scene.addSceneListener(this);
    JComponent viewComponent = scene.getView();
    if (viewComponent == null) {
        viewComponent = scene.createView();
    }
    viewComponent.addComponentListener(this);
    repaint();
}
 
Example 4
Project: openjdk-jdk10   File: ExtendedSatelliteComponent.java   View Source Code Vote up 5 votes
@Override
public void addNotify() {
    super.addNotify();
    scene.addSceneListener(this);
    JComponent viewComponent = scene.getView();
    if (viewComponent == null) {
        viewComponent = scene.createView();
    }
    viewComponent.addComponentListener(this);
    repaint();
}
 
Example 5
Project: openjdk-jdk10   File: ExtendedSatelliteComponent.java   View Source Code Vote up 5 votes
@Override
public void addNotify() {
    super.addNotify();
    scene.addSceneListener(this);
    JComponent viewComponent = scene.getView();
    if (viewComponent == null) {
        viewComponent = scene.createView();
    }
    viewComponent.addComponentListener(this);
    repaint();
}
 
Example 6
Project: rapidminer   File: BubbleWindow.java   View Source Code Vote up 4 votes
void addComponentListenerTo(JComponent comp) {
	comp.addComponentListener(compListener);
}