Action Listener is used to the button , the button click event is the example of Action Listener Interface.ItemListener is used when a CheckBox, RadioButton, ListItem or Choice menu option is selected.Focus Listener is used when an AWT Component gains or loses input focus.
The processor can execute only one thread at a time and the thread priority decides the thread is allowed to run. By using setPriority() we can set the priority of the thread of the various threads. Here priority means Order of execution.
In multithreading two or more subprograms runs simultaneously and each subprogram is called Thread. One subprogram displays the animation on the screen and other subprogram loads the next animation that is to be displayed on the screen.
This example displays the names of the weekdays in short form with the help of DateFormat Symbols() .getWeekdays() method of DateFormatSymbols class.We can change the format in many ways. Java.text package is used for formatting .
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.