import javax.swing.table.*; import javax.swing.*; import java.awt.*; public class MyTable extends JTable{ //default constructor public MyTable(){ super(); } //constructor to create a table with given number of rows and columns public MyTable(int row, int col){ super(row, col); } }