This repository contains a collection of Java-based graphical user interface (GUI) applications developed as part of a Year 1, Semester 2 software development course. Each application demonstrates different aspects of Java Swing and event handling.
Application | Description | Key Features |
---|---|---|
๐ฐ๏ธ DigitalClock.java | Tick-tock! A simple digital clock that keeps you updated every second. | โฐ Real-time display of hours, minutes, seconds, and AM/PM ๐ Continuous updates |
๐ FontSizeDisplay.java | Pump up the volume (or the font size)! Adjust the size of the displayed character with a click of a button. | โจ Displays the character "X" ๐ผ Increase font size ๐ฝ Decrease font size |
๐ง MultipleChoiceQuiz.java | Test your knowledge with a fun multiple-choice quiz! | ๐ Loads questions from an external file โ Presents questions with four options โ Immediate feedback on answer correctness ๐ Final score display |
๐ ProgressMeter.java | Watch your progress soar with this visual progress meter. | ๐ Color-coded progress steps (red to green) โณ Simulated progress advancement ๐ Percentage display |
โ SimpleCalculator.java | Crunch numbers with this basic calculator featuring a sleek graphical interface. | โ Supports addition, subtraction, multiplication, and division ๐ฅ๏ธ Clear display of calculations and results |
-
Prerequisites:
- Java Development Kit (JDK) 8 or higher
- Any Java IDE (e.g., Eclipse, IntelliJ IDEA) or a text editor
-
Setup:
- Clone this repository or download the source files
- Open the project in your preferred Java IDE
-
Running the Applications:
- Compile and run each Java file individually
- For MultipleChoiceQuiz.java, prepare a text file with quiz questions (format specified in the code comments)
- These applications were developed using Java Swing for GUI components
- Each application demonstrates different concepts:
- Timer usage (DigitalClock)
- Dynamic component manipulation (FontSizeDisplay)
- File I/O and event handling (MultipleChoiceQuiz)
- Custom painting and user interaction (ProgressMeter)
- Basic arithmetic operations with GUI (SimpleCalculator)
While this is a coursework project, suggestions for improvements are welcome. Please open an issue to discuss proposed changes.