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