JTable Classes and Interfaces
by, 04-26-2012 at 09:47 PM (2170 Views)
JTable specified functions could be present in JTable class or other classes which are present in package javax.swing.table. Majority of the programs present shall be importing both classes present, as following:
It shall be noted that scheme of package naming that is present in Swing change when JFC version1.1 came. Before this, com.sun.java.swing was used to start the swing packages. For this JFC VERSION1.1, javax.swing is used to start the package’s name.Java Code:import javax.swing.*; import javax.swing.table.*;
When a JTable is implemented in Swing, TableColumnModel, TableCellRenderer, the TableModel, & TableCellEditor are considered to be the most important. Few default classes are also provided by the swing- AbstractTableModel, DefaultColumnModel & DefaultTableModel- which are already involved in implementation of such interfaces.