📅  最后修改于: 2022-03-11 14:52:14.204000             🧑  作者: Mango
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
String textFieldValue = testField.getText();
// .... do some operation on value ...
}
})