Basic Java GUI intro

Graphics classes

Primary GUI Concepts

The main factors that make up a Graphic User Interface in a program are: The components are often pre-built items like buttons, text areas, slider bars, and the like. Some types of components are containers, meaning they can serve as ways to group other components together. Some components can act as canvases for general images, shapes, or other drawing.

Layout refers to how components are rendered on screen, relative to each other (position and size, etc).

Event handling refers to setting up actions that can trigger functionality -- examples: button clicks, selecting from a menu, pressing a key on the keyboard, timer expiring, etc.


Java Swing Graphics API

Event Handling

Some examples of event types: These are just a few examples, not a comprehensive list.