Hello,
I have a little trouble with the actionListener. I now resume an existing code (which I do not master completely). It is a visual Java application (JFrame), and when I add this application in a new window actionListener does not work properly, let me explain. Here is some simple code i want to insert:
This is not working for me. Any more help regarding this topic is appreciated. Thank you.Code:clbut JButton = new JButton("Color"); panelM.add(clbut) ; clbut.addActionListener(this) ; .... .... .... public void actionPerformed (ActionEvent el) ( if (el.getSource() == m_colorButton) System.out.System.out.println("It's happening"); )
Bookmarks