Making a JTable in Swing using Java

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).

Rotating Fan animation in Computer Graphics using C Language

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.

How to use Color Chooser in Java Swing

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.

Program to find Smallest and Largest number in Java

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.

Making a Calculator in Java Swing

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.


How to use GridBag Layout in Java

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.

How to write Mouse Motion Listener

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.

How to Add ActionListener in JButton in Swing

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).

How to use JTabbedPane in Swing

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.

Program to implement interfaces

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.

Page 22 of 29

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @