Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- */
- public void actionPerformed(ActionEvent e) {
- /*
- * jbutton here
- */
- // jmenuitem
- if (e.getSource() instanceof JMenuItem) {
- JMenuItem menuItem = (JMenuItem) e.getSource();
- if (categoryWindow == null) {
- categoryWindow = new CategoryWindow();
- categoryController = new CategoryController(categoryWindow);
- }
- switch (menuItem.getText().toLowerCase()) {
- case "piloto":
- categoryController.updateAndShowWindow("pilot");
- break;
- case "avião":
- categoryController.updateAndShowWindow("airplane");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement