Example #1
0
 private void boxActionPerformed() {
   // if (jComboBoxFeatures.getSelectedIndex()!=0){
   // System.out.println("jComboBoxFeatures.getSelectedIndex()"+jComboBoxFeatures.getSelectedIndex());
   GeopistaFeature feature = (GeopistaFeature) jComboBoxFeatures.getSelectedItem();
   // if (feature!=null)
   //	System.out.println("Feature es distinta de null");
   // else
   //	System.out.println("Feature es  null");
   documentExtendedForm.getInfoDocumentPanel().setFeature(feature);
   // featuresJComboBox.setText("");
   // }
 }
Example #2
0
 /**
  * This method initializes jButton
  *
  * @return javax.swing.JButton
  */
 private JComboBoxFeatures getFeaturesComboBox() {
   if (jComboBoxFeatures == null) {
     // System.out.println("features."+features.size());
     jComboBoxFeatures = new JComboBoxFeatures(features.toArray(), null);
     jComboBoxFeatures.addActionListener(
         new java.awt.event.ActionListener() {
           public void actionPerformed(java.awt.event.ActionEvent e) {
             boxActionPerformed();
           }
         });
   }
   return jComboBoxFeatures;
 }