A JTextField was designed to use an ActionListener just like a JButton is. See the addActionListener() method of JTextField . For example:
確定! 回上一頁