Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages
Started by George
Fri, 27 Feb 2004 17:38
Table header tooltips
Author: George
Date: Fri, 27 Feb 2004 17:38
Date: Fri, 27 Feb 2004 17:38
17 lines
1552 bytes
1552 bytes
This is what I am doing to add tooltips to a JTable's column headers:
messagesTable.getTableHeader().getColumnModel().getColumn(0).setHeaderRender
er(new MyRenderer("Tooltip"));
The MyRenderer class is a subclass of DefaultTableCellRenderer.
1. This seems terribly twisted for what it achieves. Am I missing
something basic?
2. Wouldn't it be simpler if Sun could add a method to AbstractTableModel
called getColumnHeaderToolTip(int col) which would work similar to
getColumnName(int col)?
TIA
George
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads