A table is a component of the swing class that displays rows and columns of data. The JTable class that extends JComponent is used to implement the tables.JTable components represents a two dimensional grid of objects(that is rows and columns format).
We use graphics.h header file for graphics in C language. By using graphics we can draw Lines, Circles,Rectangles(Geometrical figures) in the program.
JColorChooser is a component which is used to choose the color from the palette.By using this we can change the color of the frame again and again. We can place anywhere in the program.
Find Largest and Smallest Number in an Array means how to find largest and smallest number in an array.In this example we use 10 numbers in which we find the smallest and largest value.
In this program we are trying to make a calculator(arithmetic calculation). In this we can enter only numeric value(0…..9).All the buttons like addition,subtraction, modulus, divison are works properly.
The layout manager class provides a means for controlling the physical layout of GUI(Graphical User Inteface) elements.The GridLayout places components in rows and columns and are of equal sizes But GridLayout is used to places the components not be of the same size and places in any row or columns.
When the mouse is moved a pixel(single) in any direction(X,Y(Width,Height)), a mouse move event is generated.There are two mouse movement events :mouseMoved ,mouseDragged .mouseDragged() works where the movement occurs with the mouse button pressed down and mouseMoved() works where the mouse button isn't pressed.
The ActionListener interface declares a method that is called when an action event is generated. Only single method is defined in ActionListener interface and that is void actionPerformed(ActionEvent ax).
JTabbedPane in swing enables you to group several swing component groups on the same container. To view a particular component group, you need to select the tab corresponding to the component group in the tabbed pane. A JTabbed Pane component provides quick access to the multiple JPanels using the same space and Window.
Interface is the prototype of class (means we can declare the functions only)that can be implemented by any number of classes. It is the collection of methods and variables. Methods are only abstract methods means the methods has no statements. We use interface keyword to declare an interface.