Swing

Making Simple JTable

The JTable is almost great component of Java Swing which is used to display records of any data.
Specially JTable are used for displaying records which are retrived from the database like MySQL, ORACLE ,Excel and other…

Simply JTable has it’s default model for displaying the records in format.
In this blog we would just demonstrate a simple JTable where all the data records are being assigned by developers.

Ok, here is a detail codes of Making simple JTable:

Read More »Making Simple JTable

Text Field

The Text Field in java specially instantiated from JTextField by importing
javax.swing.*;
Here now we are gonna make a simple textfield with definite size and it’s position in JFrame.

First of all we should know dat JFrame, JPanel, JTextField are the classes of the java.swing.These all classes are included in Java swing hierarchy.Now to code for textfield we’ll need the Layout and dat will be defined soon by ourself.In Defaut the java uses it’s own Layout for textbox.The main code for defining the position and size is given below:
textbox_name.setBounds(x_axis,y_axis, width, height);

Read More »Text Field