ntakouris
ntakouris

Reputation: 958

Java - JButton listener not triggering

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.

Upvotes: 0

Views: 125

Answers (1)

scadge
scadge

Reputation: 9723

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);

Upvotes: 1

Related Questions