> I'm trying to dynamically change the column names on a JTable object.
>
> I've tried getting the TableColumn object for a given column and used
> the setIdentifier() method to change it, but nuttin' happens.
>
> Any words of wisdom?
did you read javadoc?
it says that "identifiers are not used by the JTable, they are purely a
convenience for the external tagging and location of columns."
setHeaderValue(Object o) is right one.
____________
http://reader.imagero.com the best java image reader.
Dave Monroe - 15 Jan 2004 15:58 GMT
> > I'm trying to dynamically change the column names on a JTable object.
> >
[quoted text clipped - 8 lines]
>
> setHeaderValue(Object o) is right one.
Thank you kindly.
For anyone else reading the thread, after you change the column header
values, you have to call the JFrame's repaint() method.
Dave