/** * Creates new form AddNewActivityTypePanel * * @param parent * @param modal * @param g */ public AddNewFileTypePanel(java.awt.Frame parent, boolean modal, Global g) { super(parent, modal); initComponents(); global = g; addListeners(); AddType.setEnabled(false); Cancel.requestFocusInWindow(); setIconImage(Toolkit.getDefaultToolkit().createImage(global.headerLogo)); setLocationRelativeTo(global.root); setVisible(true); }
/** * Creates new form ActivityTypeMaintenancePanel * * @param parent * @param modal * @param g */ public ActivityTypeMaintenancePanel(java.awt.Frame parent, boolean modal, Global g) { super(parent, modal); initComponents(); global = g; addTypeComboBox(global); setColumnSize(); addListeners(); loadTable(); Cancel.requestFocusInWindow(); setIconImage(Toolkit.getDefaultToolkit().createImage(global.headerLogo)); this.setLocationRelativeTo(parent); this.setVisible(true); }