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

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

Introduction

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

Usage

From source file MainClass.java

class CardLayoutPanel extends JPanel implements ActionListener {
    CardLayout card = new CardLayout(50, 50);

    public CardLayoutPanel() {

        setLayout(card);

From source file kuvalataaja.user_interface.GUI.java

/**
 * My BEAUTIFUL GUI.
 * @author micamino
 */
public final class GUI extends JFrame implements ActionListener {
    private JPanel textPanel;

From source file BoxLayoutTest.java

public class BoxLayoutTest extends JFrame implements ActionListener {

    private Box horizontalBox;

    private Box verticalBox;

From source file Main.java

class BuzzActionListener implements ActionListener {
    JFrame frame;
    Point currLocation;
    int iDisplaceXBy = 5;
    int iDisplaceYBy = -10;

From source file de.weltraumschaf.minesweeper.control.QuitListener.java

/**
 * Listens for the menu item quit and dispose main window.
 *
 * @author Sven Strittmatter <weltraumschaf@googlemail.com>
 */
class QuitListener implements ActionListener {

From source file Main.java

class CheckCombo implements ActionListener {
    public void actionPerformed(ActionEvent e) {
        JComboBox cb = (JComboBox) e.getSource();
        CheckComboStore store = (CheckComboStore) cb.getSelectedItem();
        CheckComboRenderer ccr = (CheckComboRenderer) cb.getRenderer();
        ccr.checkBox.setSelected((store.state = !store.state));

From source file assign3.client.WaypointClient.java

/**
 * Copyright (c) 2014 Tim Lindquist,
 * Software Engineering,
 * Arizona State University at the Polytechnic campus
 * <p/>
 * This program is free software; you can redistribute it and/or

From source file org.mutoss.gui.dialogs.AboutDialog.java

/**
 * Displays Information about the program, its licenses, used libraries,
 * their licenses, the web site ...
 */
public class AboutDialog extends InfoDialog implements ActionListener {
    private static Log logger = LogFactory.getLog(AboutDialog.class);

From source file de.weltraumschaf.minesweeper.control.NewGameListener.java

/**
 * Listens for the new game menu item.
 *
 * @author Sven Strittmatter <weltraumschaf@googlemail.com>
 */
class NewGameListener implements ActionListener {

From source file SaveYourDrawingToFile.java

public class SaveYourDrawingToFile extends JFrame implements MouseListener, ActionListener {
    List<Point> displayList = new ArrayList<Point>();
    String pathname = "data.dat";
    JButton clearBtn = new JButton("Clear");
    JButton saveBtn = new JButton("Save");
    JButton restoreBtn = new JButton("Restore");