Hello, I'm IDK, and I'm new here.
I'm learning to program java and I have a problem implementing a push button into the source code. Well, this is not my source code it came straight from the book.
So basically it has two class. First one is the frame panel. The second class is the main components. This is a temperature conversion program. The second class use private jlabel inputlabel, outputlabel, etc. Also uses TempListener and implements actionlistener. Now, I am not typing the code here because it's not my. Sorry about that. I'll be happy typing the whole thing if it's okay. But for now, can someone help me implementing the push button to get the result. The book suggests that listener object can be used to listen to multiple components at eh same time. But i don't know how.