Skip to content

laibaazeem3250-ship-it/java-event-driven-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Event-Driven GUI Programming

Building interactive Java GUIs using Swing — learning how buttons, events, and listeners work together in real-time applications.


📸 Screenshots

App Preview
Hello Button Event HelloAndGoodbye

🧠 Concepts Learned

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

🗂️ What's Inside

File Description
HelloAndGoodbye.java Button click event — prints to console on click

🚀 How to Run

  1. Make sure JDK 8+ is installed
  2. Clone the repo:
   git clone https://github.com/laibaazeem3250-ship-it/java-event-driven-gui.git
  1. Open in Eclipse IDE
  2. Run HelloAndGoodbye.java
  3. 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"


📅 Progress Log

Date What I Learned
April 7, 2025 JButton, ActionListener, Event Registration

🛠️ Tech Stack

Java Eclipse


🙋‍♀️ Author

Laiba Azeem 🎓 CS Student | Learning Java GUI one click at a time 😄

GitHub

About

Interactive Java GUI using Swing & Event Listeners ☕

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages