List of usage examples for java.awt.event ActionListener interface-usage
From source file PopUpColorMenu.java
public class PopUpColorMenu implements ActionListener { Component selectedComponent; public PopUpColorMenu() { JFrame frame = new JFrame();
From source file Main.java
public class Main extends JFrame implements KeyListener, ActionListener { JTextArea displayArea; JTextField typingArea; static final String newline = System.getProperty("line.separator"); public static void main(String[] args) {
From source file Main.java
public class Main extends JFrame implements KeyListener, ActionListener { JTextArea displayArea; JTextField typingArea; static final String newline = System.getProperty("line.separator"); public static void main(String[] args) {
From source file Main.java
public class Main extends JFrame implements KeyListener, ActionListener { JTextArea displayArea; JTextField typingArea; static final String newline = System.getProperty("line.separator"); public static void main(String[] args) {
From source file EventQueuePanel.java
public class EventQueuePanel extends JPanel implements ActionListener { EventQueuePanel() { JButton button = new JButton("Draw line"); add(button); button.addActionListener(this); }
From source file MainClass.java
/** Taken from the Sun documentation on Clipboard API */ public class MainClass extends Frame implements ClipboardOwner, ActionListener { TextArea srcText, dstText; Button copyButton, pasteButton;
From source file InternalFrameListenerDemo.java
public class InternalFrameListenerDemo extends JFrame implements ActionListener, InternalFrameListener { protected int m_count; protected int m_tencount; private int[] m_counts = new int[7]; private int m_open, m_closing, m_close, m_iconify, m_deiconify, m_activate, m_deactivate; protected JButton m_newFrame;
From source file SimpleDraw.java
public class SimpleDraw extends JFrame implements ActionListener, MouseListener { // (x1,y1) = coordinate of mouse pressed // (x2,y2) = coordinate of mouse released int x1; int y1; int x2;
From source file ActionListenerTest2.java
class MyActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { JFileChooser fileChooser = new JFileChooser(); int returnVal = fileChooser.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { System.out.print(fileChooser.getSelectedFile().getName());
From source file Main.java
public class Main extends JFrame implements ActionListener { JButton num1, num2, num3, num4, num5, num6, num7, num8, num9, num0, add, sub, div, mult, equalto, exit, point, reset; JTextField textField; String s = "", ope = ""; int flag = 0;