0

For a reason that I am not able to find , the SendListener is not working. My Frame.class : http://pastebin.com/N28dFzYN My SendListener.class : http://pastebin.com/q75EVZtd

I dont get it. Everything else works just fine.

4

1 回答 1

1

You just don't add your listener to button. From line 119 in Frame.java you need to have:

//Console
sendCommand = new JButton("Send");
sendCommand.addActionListener(sender);
sendCommand.setVisible(true);
于 2013-09-23T15:09:53.540 回答