How can I set the column names for a JTable after creating it with no argument constructor?

Voytek Jarnot

Use the following code:

    setHeaderValue("New Column Name");

columnIndex is the (0 based) index of the column whose name you wish to change (in this case to "New Column Name").

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.