setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
btnStop.addActionListener(new StopActionListener());
- btnApply.addActionListener(new ApplyActionListener());
+ final ApplyActionListener applyListener = new ApplyActionListener();
+ btnApply.addActionListener(applyListener);
pnlMain.setBorder(BorderFactory.createEtchedBorder());
lblId.setText("ID");
+ fldId.addActionListener(applyListener);
fldId.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {