You are on page 1of 7

Advance GUI with

DATABASE
Ako A. Jaafar

JTABLE

JTable is a Swing component that displays data


in rows and columns in a two-dimensional grid.

JTable doesnt directly support scrolling. To


create a scrollable table, you need to create a
JScrollPane and add an instance of JTable to
the scroll pane.

JTABLE

JTable has three supporting models: a table model, a


column model, and a list-selection model.

The table model is for storing and processing data.


The column model represents all the columns in the table.
The list-selection model is the same as the one used by JList for
selecting rows, columns, and cells in a table

JTABLE

JTable also has two useful supporting classes,


TableColumn and JTableHeader.

JTable with Database

JTable with Database

JTable with Database

You might also like