This file defines an applet.
This template is a reasonable way to start an applet, where GenericPanel is a subclass of JPanel and it contains the code to build a GUI with the appropriate listeners..
This file defines a class with a main method.
This template is a reasonable way to start an application, where GenericGUI is a subclass of JPanel which contains the code to build a GUI with the appropriate listeners..
Generic Calc
This program converts miles into kilometers..
Second Window
Here we define a subclass of JFrame (a window) that constructs a JPanel to put the one component on. In this case the component is a button that does nothing..
First Window
This is about the simplest GUI (Graphical User Interface) window that you can make. The window is very small, and will appear in the top left corner of the screen..
Separating UI from Logic
One of the most important ideas in organizing programs is to separate the user interface from the logic ..
This series of progressive examples shows a typical pattern for building simple applications with a window.
Example - First Window shows a main program that creates an empty window (JFrame)..