Re: tables and table headers
<[email protected]> Mon, 24 Jan 2005 10:17:11 +0100
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> schrieb am 23.01.05 19:53:02: > > I am having difficulty getting table headers to show up in the GUI. I > have a table that I am initializing through a table model. That part is > working just fine. > > I tried using the tableheader tag, and initializing it using a > tablecolumnmodel. I usually use code like this in my tablemodel: public int getColumnCount() { return ...; } /* (non-Javadoc) * @see javax.swing.table.AbstractTableModel#getColumnName(int) */ public String getColumnName(int column) { switch (column) { case ...: return ...; case ...: return ...; default: return null; } } Works like a charme ;) > > I also tried not using a tableheader tag, and adding columns to the > tablemodel. Never had to use this, so I cannot help you there... Frank > > Any help on this subject would be greatly appreciated. > > > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com