Hello,
I am having a problem with some code I am making. I am trying to make a game. Just started a few weeks back. Well, I have three JButtons, but for some reason one is throwing a error when I try to compile it. Here is the code below:
JButton Hack=new JButton("Hack"); Hack.addActionListener=(new ActionListener(){ public void actionPerformed(ActionEvent e){ System.out.println("Hello"); } });