Package charvax.swing

Examples of charvax.swing.JMenuItem.addActionListener()


                    done();
                }
            });

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


                public void actionPerformed(ActionEvent ae_) {
                    showLoadDialog();
                }
            });
            JMenuItem saveItem = new JMenuItem("Save");
            saveItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    showSaveDialog();
                }
            });
View Full Code Here

                    showSaveDialog();
                }
            });

            JMenuItem eval = new JMenuItem("Evaluate");
            eval.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae_) {
                    evaluateText();
                    repaint();
                }
            });
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_);
View Full Code Here

        });
        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);
View Full Code Here

            }
        });
        file.add(open);
        JMenuItem save = new JMenuItem("Save");
        save.setMnemonic('S');
        save.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                save();
            }
        });
        file.add(save);
View Full Code Here

            }
        });
        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);
View Full Code Here

        });
        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

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.