List of usage examples for java.awt.event ActionListener interface-usage
From source file Main.java
public class Main extends JFrame implements ActionListener { public Main() { Vector model = new Vector(); model.addElement(new Item(1, "A")); model.addElement(new Item(2, "B")); model.addElement(new Item(4, "C"));
From source file Main.java
public class Main extends JPanel implements ActionListener { Main() { JButton button = new JButton("Click to chooose the first point"); add(button); button.addActionListener(this); }
From source file Main.java
class ClickListener implements ActionListener { public void actionPerformed(ActionEvent e) { System.out.println("test"); } }
From source file ImageComposite.java
public class ImageComposite extends JPanel implements ActionListener { Image a = new ImageIcon(this.getClass().getResource("a.png")).getImage(); Image b = new ImageIcon(this.getClass().getResource("b.png")).getImage(); Timer timer = new Timer(800, this); float alpha = 1f;
From source file MainClass.java
class MyTimerActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { System.out.println("asdf"); }
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 Main.java
class MyFrame extends JFrame implements ActionListener { JProgressBar pb; JButton b1 = new JButton("LOGIN"); MyFrame() { setLayout(null);
From source file Main.java
public class Main extends JFrame implements ActionListener { public Main() { Vector model = new Vector(); model.addElement(new Item(1, "A")); model.addElement(new Item(2, "B")); model.addElement(new Item(3, "C"));
From source file Main.java
public class Main extends JFrame implements ActionListener { public Main() { setTitle("ZipTest"); setSize(300, 400); JMenuBar mbar = new JMenuBar();
From source file FileChooserDemo.java
public class FileChooserDemo extends JFrame implements ActionListener { public FileChooserDemo() { setTitle("ZipTest"); setSize(300, 400); JMenuBar mbar = new JMenuBar();