// Add menu items:
// 1.x) Exit program (should be last)
this.addMenuItem(menu, "exitProgram", new ActionListener() { //NOI18N
- /**
- * If the user has performed this action
- * <p>
- * @param e An instance of an ActionEvent class
- */
- @Override
- public void actionPerformed (final ActionEvent e) {
- self.shutdownApplication();
- }
- });
+ /**
+ * If the user has performed this action
+ * <p>
+ * @param e An instance of an ActionEvent class
+ */
+ @Override
+ public void actionPerformed (final ActionEvent e) {
+ self.shutdownApplication();
+ }
+ });
// Add menu -> menu bar
menuBar.add(menu);
// Init more menus:
// 1) Add new contact
this.addMenuItem(menu, "addNewContact", new ActionListener() { //NOI18N
- /**
- * If the user has performed this action
- * <p>
- * @param e An instance of an ActionEvent class
- */
- @Override
- public void actionPerformed (final ActionEvent e) {
- ((ContactFacade) self.getClient().getFacade()).doAddOtherAddress();
- }
- });
+ /**
+ * If the user has performed this action
+ * <p>
+ * @param e An instance of an ActionEvent class
+ */
+ @Override
+ public void actionPerformed (final ActionEvent e) {
+ ((ContactFacade) self.getClient().getFacade()).doAddOtherAddress();
+ }
+ });
// Add menu -> menu bar
menuBar.add(menu);