Package io.matita08.GUI
package io.matita08.GUI
Graphical User Interface (GUI) package for the CPU Simulator application.
This package contains all the user interface components and classes responsible for providing the visual interface and user interaction capabilities of the CPU simulator. The GUI provides a comprehensive view of the simulated processor's internal state and operation.
Key components include:
Display- Main application window with CPU visualization, memory display, control panels, and I/O interfacesLine- Custom component for drawing visual separators- Event listeners in the
io.matita08.GUI.listenerssub-package for handling user interactions
The GUI architecture follows these design principles:
- Swing-based: Built using Java Swing components with custom layouts
- Thread-safe: All GUI updates are performed on the Event Dispatch Thread
- Modular design: Components are organized into logical sections (CPU, memory, I/O)
- Real-time updates: Interface reflects the current state of the simulated CPU
The main GUI displays:
- CPU registers (PC, IR, MAR, MDR, Accumulator, etc.)
- Arithmetic Logic Unit (ALU) status and operations
- Program Status Word (PSW) with CPU flags
- Central memory contents with scrollable address/value pairs
- Control unit information (current instruction, execution phases)
- I/O buffers and interactive numeric keypad
- Control buttons for program execution and file loading
- Since:
- 1.0