How to add ActionListener to a JButton added to a JPanel?

I think your basic Java concepts are lacking There is no "this" reference in any static context, i.e. Static void main Replace "this" with your instance of "r", "z3 b1. AddActionListener(z3); b2.

AddActionListener(z3) Other than that, your UI code is really all over the place, but that's a discussion for another question.

I think your basic Java concepts are lacking. There is no "this" reference in any static context, i.e. Static void main.

Replace "this" with your instance of "r", "z3". B1. AddActionListener(z3); b2.

AddActionListener(z3); Other than that, your UI code is really all over the place, but that's a discussion for another question.

Additionally, I'd suggest him to use more meaningful variable and class names. Q, z1, r and the like are quite confusing and can cause a lot of trouble in the long term. – Thomas Jul 4 at 8:17.

ActionListener is added | Echo Web Framework.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions