Java Event-Driven GUI Programming
Building interactive Java GUIs using Swing — learning how buttons,
events, and listeners work together in real-time applications.
App
Preview
Hello Button Event
Concept
Description
JButton
Creating clickable buttons in Swing
ActionListener
Listening for user interactions
addActionListener()
Registering events with a source
Event-Driven Programming
Code that reacts to user actions
File
Description
HelloAndGoodbye.java
Button click event — prints to console on click
Make sure JDK 8+ is installed
Clone the repo:
git clone https://github.com/laibaazeem3250-ship-it/java-event-driven-gui.git
Open in Eclipse IDE
Run HelloAndGoodbye.java
Click the Hello button and watch the console! 🖱️
💡 How Event-Driven Programming Works
User clicks button
↓
ActionListener fires
↓
ButtonListener executes
↓
Console prints: "ooh! she clicked me"
Date
What I Learned
April 7, 2025
JButton, ActionListener, Event Registration
Laiba Azeem
🎓 CS Student | Learning Java GUI one click at a time 😄