In this tutorial, basic Graphical User Interface (GUI) programming using Windows Forms, Menus and Graphics Objects is covered. Sample applications such as Simple Interest and Matrix Grid will help you to familiarize with common frequently used Namespaces. Usage of various Packages such as java.awt, javax.swing etc are illustrated in this tutorial. A brief explanation of all important Packages and classes are given belowl.
Java.awt- The java.awt package contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. The AWTEvent class and its subclasses are used to represent the events that AWT components can fire.
Some of the classes in the java.awt package are:
Javax.swing- The javax.swing provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.Some of the classes in javax.swing namespace are: