Example #1
0
  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();
  }
Example #2
0
  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();
  }