Example usage for java.awt.event ComponentListener interface-usage

List of usage examples for java.awt.event ComponentListener interface-usage

Introduction

In this page you can find the example usage for java.awt.event ComponentListener interface-usage.

Usage

From source file Main.java

public class Main implements ComponentListener {

    @Override
    public void componentShown(ComponentEvent evt) {
        System.out.println(evt.paramString());
    }

From source file Main.java

public class Main implements ComponentListener {

    @Override
    public void componentShown(ComponentEvent evt) {
        System.out.println(evt.getID() == ComponentEvent.COMPONENT_FIRST);
    }

From source file MovingWindow.java

public class MovingWindow extends JFrame implements ComponentListener {
    public MovingWindow() {
        addComponentListener(this);
        setSize(310, 200);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

public class Main implements ComponentListener {

    @Override
    public void componentShown(ComponentEvent evt) {
        System.out.println(evt.getID() == ComponentEvent.COMPONENT_LAST);
    }

From source file Main.java

public class Main implements ComponentListener {

    @Override
    public void componentShown(ComponentEvent evt) {
        System.out.println(evt.getID() == ComponentEvent.COMPONENT_SHOWN);
    }

From source file Main.java

public class Main implements ComponentListener {

    @Override
    public void componentShown(ComponentEvent evt) {
        System.out.println(evt.getID() == ComponentEvent.COMPONENT_FIRST);
        ComponentEvent event = new ComponentEvent((Component) evt.getSource(), ComponentEvent.COMPONENT_MOVED);

From source file Main.java

public class Main extends JFrame implements ComponentListener {
    public Main() {
        addComponentListener(this);
    }

    public void componentHidden(ComponentEvent e) {

From source file Main.java

public class Main extends JFrame implements ComponentListener, ActionListener {
    JButton ok = new JButton("OK");
    Dialog dialog = new Dialog();

    public Main() {
        ok.addActionListener(this);

From source file fxts.stations.trader.ui.ABaseDialog.java

/**
 * An interface class for closing and disbling dialog by
 * other components.<br>
 * Creation date (10/3/2003 8:45 AM)
 */
public abstract class ABaseDialog extends JDialog implements ComponentListener {

From source file events.ComponentEventDemo.java

public class ComponentEventDemo extends JPanel implements ComponentListener, ItemListener {
    static JFrame frame;
    JTextArea display;
    JLabel label;
    String newline = "\n";