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(""); // } }
/** * 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; }