0
爲什麼不能將偵聽器添加到作爲參數的對象?此處不允許'void'類型 - 監聽參數
panelThird.add(new JTextField("Write here !").addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e) {
dlm.addElement(e.getActionCommand());
}
}),
BorderLayout.SOUTH);