@Action public void showAboutBox() { if (aboutBox == null) { JFrame mainFrame = AddictionManagerApp.getApplication().getMainFrame(); aboutBox = new AddictionManagerAboutBox(mainFrame); aboutBox.setLocationRelativeTo(mainFrame); } AddictionManagerApp.getApplication().show(aboutBox); }
private void newTaskBtnActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_newTaskBtnActionPerformed // TODO add your handling code here: AddictionManagerApp app = (AddictionManagerApp) getApplication(); if (app != null) { WizardView wv = WizardView.loadWizardView(); app.setWizardViewManager(wv); } } // GEN-LAST:event_newTaskBtnActionPerformed
public AddictionManagerView(SingleFrameApplication app) { super(app); initComponents(); currentTaskNavOption.setSelected(true); currentTaskNavOption.setFocusable(true); changeTaskData( AddictionManagerApp.getApplication().getStorageUtility().getDocument(TaskType.CURRENT)); // status bar initialization - message timeout, idle icon and busy animation, etc ResourceMap resourceMap = getResourceMap(); }
private void trashCanNavOptionActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_trashCanNavOptionActionPerformed // TODO add your handling code here: changeTaskData( AddictionManagerApp.getApplication().getStorageUtility().getDocument(TaskType.TRASHED)); } // GEN-LAST:event_trashCanNavOptionActionPerformed