List of usage examples for java.awt.event ActionListener interface-usage
From source file Main.java
public class Main extends JFrame implements ActionListener { Image img; JButton getPictureButton = new JButton("Get Picture"); public static void main(String[] args) {
From source file Clipping.java
public class Clipping extends JPanel implements ActionListener { int x = 8, y = 8, radius = 90; Timer timer; Image image = new ImageIcon("yourImage.png").getImage(); double delta[] = { 3, 3 };
From source file DebugWinTest.java
public class DebugWinTest extends JFrame implements ActionListener { private JButton aButton = new JButton("button"); private DebugWin dw = new DebugWin(); public DebugWinTest() {
From source file ComboBox.java
public class ComboBox extends JDialog implements ActionListener, ItemListener { final String[] authors = { "A", "B", "C", "D", "E", "F" }; final String[] images = { "a.jpg", "b.jpg", "c.jpg", "d.jpg", "e.jpg", "f.jpg" }; JLabel display = new JLabel(); JComboBox combobox = new JComboBox(authors);
From source file TextAreaFrame.java
public class TextAreaFrame extends JFrame implements ActionListener { private JButton insertButton = new JButton("Insert"); private JButton wrapButton = new JButton("Wrap");
From source file Main.java
public class Main extends JFrame implements ActionListener { ImageIcon m[]; JLabel l; JButton b = new JButton("Pre"), b1 = new JButton("Next"); int i, l1; JPanel p;
From source file JScrollPaneToTopAction.java
class JScrollPaneToTopAction implements ActionListener { JScrollPane scrollPane; public JScrollPaneToTopAction(JScrollPane scrollPane) { if (scrollPane == null) { throw new IllegalArgumentException("JScrollPaneToTopAction: null JScrollPane");
From source file JScrollPaneToTopAction.java
class JScrollPaneToTopAction implements ActionListener { JScrollPane scrollPane; public JScrollPaneToTopAction(JScrollPane scrollPane) { if (scrollPane == null) { throw new IllegalArgumentException("JScrollPaneToTopAction: null JScrollPane");
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
public class Main extends JPanel implements ActionListener { Main() { JButton button = new JButton("Click to chooose the first point"); add(button); button.addActionListener(this); }