1 19 20 package org.netbeans.modules.j2ee.blueprints.ui.projects; 21 22 import org.openide.WizardDescriptor; 23 import org.openide.util.NbBundle; 24 25 public class PanelOptionsVisual extends javax.swing.JPanel { 26 27 private PanelConfigureProject panel; 28 29 30 public PanelOptionsVisual(PanelConfigureProject panel) { 31 initComponents(); 32 this.panel = panel; 33 } 34 35 40 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 42 43 setAsMainCheckBox = new javax.swing.JCheckBox (); 44 jScrollPane1 = new javax.swing.JScrollPane (); 45 46 setLayout(new java.awt.GridBagLayout ()); 47 48 setAsMainCheckBox.setMnemonic(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "LBL_NWP1_SetAsMain_CheckBoxMnemonic").charAt(0)); 49 setAsMainCheckBox.setSelected(true); 50 setAsMainCheckBox.setText(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "LBL_NWP1_SetAsMain_CheckBox")); 51 setAsMainCheckBox.setActionCommand("Set as Main Project"); 52 setAsMainCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 53 gridBagConstraints = new java.awt.GridBagConstraints (); 54 gridBagConstraints.gridx = 0; 55 gridBagConstraints.gridy = 0; 56 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 57 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 58 gridBagConstraints.insets = new java.awt.Insets (0, 0, 11, 0); 59 add(setAsMainCheckBox, gridBagConstraints); 60 setAsMainCheckBox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(PanelOptionsVisual.class, "ACS_LBL_NWP1_SetAsMain_A11YDesc")); 61 62 jScrollPane1.setBorder(null); 63 gridBagConstraints = new java.awt.GridBagConstraints (); 64 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 65 gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; 66 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 67 gridBagConstraints.weightx = 1.0; 68 gridBagConstraints.weighty = 1.0; 69 gridBagConstraints.insets = new java.awt.Insets (0, 12, 0, 0); 70 add(jScrollPane1, gridBagConstraints); 71 72 } 74 boolean valid(WizardDescriptor wizardDescriptor) { 75 return true; 76 } 77 78 void store(WizardDescriptor d) { 79 d.putProperty(WizardProperties.SET_AS_MAIN, setAsMainCheckBox.isSelected() ? Boolean.TRUE : Boolean.FALSE ); 80 } 81 82 void read(WizardDescriptor d) { 83 } 84 85 private javax.swing.JScrollPane jScrollPane1; 87 private javax.swing.JCheckBox setAsMainCheckBox; 88 90 } 91 92 | Popular Tags |