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?
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