how to set column names when not using object of row data in constructer

hello i am using JTable constructer aspublic JTable(int numRows, int numColumns)can i set column names for the columns .How?
[166 byte] By [amin_rashid] at [2007-9-26 2:51:27]
# 1
hi,sure you can: Create a subclass of DefaultTableModel and overwrite the method public String getColumnName(int) which returns the column name of a specific column. Then use this subclass as the data model for the table.best regards, Michael
Michael_Rudolf at 2007-6-29 10:38:43 > top of Java-index,Archived Forums,Java Programming...