Package charva.awt.event

Examples of charva.awt.event.ActionListener


    public void postActionEvent(ActionEvent ae_) {
  if (_actionListeners != null) {
      for (Enumeration<ActionListener> e = _actionListeners.elements();
        e.hasMoreElements(); ) {

    ActionListener al = (ActionListener) e.nextElement();
    al.actionPerformed(ae_);
      }
  }
    }
View Full Code Here


    protected void fireActionEvent(ActionEvent ae_) {
  if (_actionListeners != null) {
      for (Enumeration<ActionListener> e = _actionListeners.elements();
        e.hasMoreElements(); ) {

    ActionListener al = (ActionListener) e.nextElement();
    al.actionPerformed(ae_);
      }
  }
    }
View Full Code Here

    protected void fireActionPerformed(ActionEvent ae_) {
  if (_actionListeners != null) {
      for (Enumeration<ActionListener> e = _actionListeners.elements();
        e.hasMoreElements(); ) {

    ActionListener al = (ActionListener) e.nextElement();
    al.actionPerformed(ae_);
      }
  }
    }
View Full Code Here

        JMenuBar mb = new JMenuBar();
        JMenu file = new JMenu("File");
        file.setMnemonic('F');
        JMenuItem new_ = new JMenuItem("New");
        new_.setMnemonic('N');
        new_.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                new_();
            }
        });
        file.add(new_);
        file.addSeparator();
        JMenuItem open = new JMenuItem("Open...");
        open.setMnemonic('O');
        open.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                open();
            }
        });
        file.add(open);
        JMenuItem save = new JMenuItem("Save");
        save.setMnemonic('S');
        save.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                save();
            }
        });
        file.add(save);
        JMenuItem saveAs = new JMenuItem("Save As..");
        saveAs.setMnemonic('A');
        saveAs.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                saveAs();
            }
        });
        file.add(saveAs);
        file.addSeparator();
        JMenuItem exit = new JMenuItem("Exit");
        exit.setMnemonic('x');
        exit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exit();
            }
        });
        file.add(exit);
View Full Code Here

            JMenuBar menubar = new JMenuBar();
            JMenu jMenuFile = new JMenu("File");
            jMenuFile.setMnemonic('F');

            JMenuItem exit = new JMenuItem("Exit");
            exit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    done();
                }
            });

            JMenuItem loadItem = new JMenuItem("Load");
            loadItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    showLoadDialog();
                }
            });
            JMenuItem saveItem = new JMenuItem("Save");
            saveItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    showSaveDialog();
                }
            });

            JMenuItem eval = new JMenuItem("Evaluate");
            eval.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    evaluateText();
                    repaint();
                }
            });
View Full Code Here

TOP

Related Classes of charva.awt.event.ActionListener

Copyright © 2018 www.massapicom. 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.