Package java.awt

Examples of java.awt.Button.addActionListener()


                (new Thread(PacketTool.this, "Packet Reader")).start();
            }
        });
        panConnect.add(button);
        button = new Button("Connect");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                connect();
            }
        });
        panConnect.add(button);
View Full Code Here


        });
        panConnect.add(button);

        // Populate the transmission panel.
        button = new Button("Load Board");
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                boardLoad();
            }
        });
        panXmit.add(button);
View Full Code Here

        panel.setLayout(new FlowLayout(FlowLayout.CENTER));

        it = buttons.iterator();
        while (it.hasNext()) {
            butt = new Button(it.next());
            butt.addActionListener(this);
            panel.add(butt);
        }

        Panel panelChoice = new Panel();
        panelChoice.setLayout(new GridLayout(elemente.size(), 1));
View Full Code Here

        this.stdButton = buttons.get(0);
        it = buttons.iterator();
        while (it.hasNext()) {
            butt = new Button(it.next());
            butt.addActionListener(this);
            panel.add(butt);
        }
        this.add(panel, BorderLayout.SOUTH);
        this.pack();
       
View Full Code Here

       
        this.add(but1);
        this.add(but2);

        but1.addActionListener(this);
        but2.addActionListener(this);
       
        this.setBounds(100, 100, 500, 150);

        Iterator<String> it = elemente.iterator();
        while (it.hasNext()) {
View Full Code Here

        panel.setLayout(new FlowLayout(FlowLayout.CENTER));

        it = buttons.iterator();
        while (it.hasNext()) {
            butt = new Button(it.next());
            butt.addActionListener(this);
            panel.add(butt);
        }

        Panel panelChoice = new Panel();
        panelChoice.setLayout(new GridLayout(elemente.size(), 1));
View Full Code Here

        panel.setLayout(new FlowLayout(FlowLayout.CENTER));

        it = buttons.iterator();
        while (it.hasNext()) {
            butt = new Button(it.next());
            butt.addActionListener(this);
            panel.add(butt);
        }
        this.add(panel, BorderLayout.SOUTH);
        this.pack();
    }
View Full Code Here

       
        this.add(but1);
        this.add(but2);

        but1.addActionListener(this);
        but2.addActionListener(this);
       
        this.setBounds(100, 100, 500, 150);

        Iterator<String> it = elemente.iterator();
        while (it.hasNext()) {
View Full Code Here

        b10.setFont(new Font("", 1, 12));
        b11.setFont(new Font("", 1, 12));
        b12.setFont(new Font("", 1, 12));
        b13.setFont(new Font("", 1, 12));
       
        b1.addActionListener(this);
        b2.addActionListener(this);
        b3.addActionListener(this);
        b4.addActionListener(this);
        this.b5.addActionListener(this);
        this.b6.addActionListener(this);
View Full Code Here

       
        Panel choiPan = new Panel(new GridLayout(1, 1));

        Panel p = new Panel();
        b = new Button("Beenden");
        b.addActionListener(this);
        buttonPanel.add(b);
        b = new Button("Modus");
        b.addActionListener(this);
        buttonPanel.add(b);
        b = new Button("Dicke");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.