Java Tutorial 13: Adding Action Listener in Java
Uploader Comments (Creativitytuts)
Video Responses
All Comments (6)
-
Brilliant tutorial, helped me understand so much, thank you! Could you tell me the advantage of putting all your code in the class constructor? (Big time newbie here! Sorry for the probably obvious question...)
-
thanks for uploading tutorials!
it really helped me to understand the action listener...
im new at java so i'll probably be watching more of your videos
-
I'm looking for help so my GUI will use the the information in the JTextField to get my answer and display it using that same GUI
I got the frame and buttons and listeners ready! but i cant get it to use the information on JTextfield my program opens another JOtionPane box to ask me to imput that information ( i know i did that through import JOptionPane ) when i press the buttons
I noticed in another video, you import java.awt.*;
When I tried to write this program, I imported java.awt.*; I kept getting errors until I changed it to java.awt.event.*; Do you know why that is?
moufpuncha 11 months ago
@moufpuncha : When you are adding Action Listener you need to import Java.awt.event.*; otherwise it will give an error message.
Java.awt.* library is only to create GUI.
Creativitytuts 11 months ago