List of usage examples for java.awt.event ComponentAdapter subclass-usage
From source file Main.java
public class Main extends ComponentAdapter { public void componentResized(ComponentEvent evt) { System.out.println("componentResized"); }
From source file Main.java
public class Main extends ComponentAdapter { public void componentShown(ComponentEvent evt) { System.out.println("componentShown"); }
From source file Main.java
public class Main extends ComponentAdapter { public void componentHidden(ComponentEvent evt) { System.out.println("componentHidden"); }
From source file MoveAdapter.java
class MoveAdapter extends ComponentAdapter { public void componentMoved(ComponentEvent e) { int x = e.getComponent().getX(); int y = e.getComponent().getY(); System.out.println("x: " + x); System.out.println("y: " + y);
From source file Main.java
public class Main extends ComponentAdapter { public void componentMoved(ComponentEvent evt) { Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); int x = evt.getComponent().getX(); int y = evt.getComponent().getY(); if (y < 0) {
From source file Main.java
public class Main extends ComponentAdapter { private boolean locked = false; private int sd = 50;
From source file WindowSnapper.java
class WindowSnapper extends ComponentAdapter { private boolean locked = false; private int sd = 50;