public void actionPerformed(ActionEvent e) { if (e.getSource() == button[0]) { String str = condition.getText(); ctrl.del(str, SASKaiView.tm); } else if (e.getSource() == button[1]) { condition.setText(""); } else if (e.getSource() == button[2]) { String str = ""; ctrl.del(str, SASKaiView.tm); } else if (e.getSource() == button[3]) { System.exit(0); } else if (e.getSource() == bSearch) { SASKaiView.tm.setRowCount(0); String str = condition.getText(); ctrl.expressResult(str, SASKaiView.tm); } }
public void actionPerformed(ActionEvent e) { if (e.getSource() == button[0]) { int i; String[] temp = new String[4]; for (i = 0; i < 4; i++) { temp[i] = text[i].getText(); } ctrl.regi(temp, SASKaiView.tm); } else if (e.getSource() == button[1]) { int i; for (i = 0; i < 4; i++) { text[i].setText(""); } } else if (e.getSource() == button[2]) { System.exit(0); } }