void this_keyTyped(KeyEvent e) { // debug // javax.swing.JOptionPane.showMessageDialog(null,"combo field keyTyped"); dbModificato = true; tnxDbPanel temp = (tnxDbPanel) this.getParent(); boolean res = temp.dbCheckModificati(); }
void this_itemStateChanged(ItemEvent e) { // quando cambiano item // debug // javax.swing.JOptionPane.showMessageDialog(null,"text field ite"); if (dbTextAbbinato != null) { if (this.getSelectedIndex() >= 0 && this.getSelectedIndex() < this.dbItemsK.size()) { dbTextAbbinato.setText(this.getSelectedKey().toString()); } } // debug // javax.swing.JOptionPane.showMessageDialog(null,"combo changed"); dbModificato = true; tnxDbPanel temp = (tnxDbPanel) this.getParent(); boolean res = temp.dbCheckModificati(); }