Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Place(){
- setLayout(new BorderLayout());
- JMenuBar mb = new JMenuBar();
- JMenu archive = new JMenu("Archive");
- setJMenuBar(mb);
- mb.add(archive);
- JMenuItem loadItem = new JMenuItem("Load");
- archive.add(loadItem);
- loadItem.addActionListener(new LoadLyss());
- JMenuItem saveItem = new JMenuItem ("Save");
- archive.add(saveItem);
- saveItem.addActionListener(new SaveLyss());
- JMenuItem exitItem = new JMenuItem ("Exit");
- archive.add(exitItem);
- exitItem.addActionListener(new ExitLyss());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement