📜  获取值文本字段 java 代码示例

📅  最后修改于: 2022-03-11 14:52:14.204000             🧑  作者: Mango

代码示例1
button.addActionListener(new ActionListener(){
   public void actionPerformed(ActionEvent ae){
      String textFieldValue = testField.getText();
      // .... do some operation on value ...
   }
})