Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
- JMenu fileMenu = new JMenu("File");
- menuBar.add(fileMenu);
- JMenuItem openItem = new JMenuItem("Open");
- fileMenu.add(openItem);
- openItem.addActionListener(OpenAction);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement