An event-driven desktop application built in Java Swing designed to test memory recall using dynamically generated visual sequences. The application manages state-driven game modes, timed sequence loops, dynamic button layouts, and user input validation.
-
Graphical User Interface: Built using
JFrameand a$3 \times 3$ GridLayoutmanaging nine interactiveJButtoncomponents. -
State Management Engine: Toggles between display ("RED Mode") and user interaction ("GREEN Mode") states to enforce strict sequence progression and rule compliance.
-
Dynamic Sequence Generation: Generates pseudo-random numerical sequences stored in memory for runtime state comparison.
-
Event-Driven Input Handling: Leverages
MouseListenerand event state controls to manage active response windows, prevent input spoofing during generation phases, and validate turn logic. -
Executable Packaging: Configured with pre-packaged output files (
.jarand.exe) bundled with JRE configurations for standalone desktop operation.
-
GUI Layout & Component Lifecycle: Custom initialization (
initComponents()), container repainting (revalidate()), and dynamic visual state updates. -
Input Validation & State Control: Disabling dynamic listeners during program-driven display phases to lock input handling until the evaluation phase.
-
Programmatic Timing: Enforcing timed per-number input windows during evaluation states.
-
Language: Java
-
Framework: Java Swing / AWT
-
Concepts: Event-Driven Architecture, GUI State Machines, Layout Managers, Standalone Distribution
