Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MultiLine Headers with Icons for a JTable

 
Neha D
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want multi line headers for a table with header icons. For multiline headers I am extending the renderer class to a JList & it implements the TableCellRenderer interface.

The problem is, it is showing me the multiline header for each column but when I click on any one of the headers it shows me the same icon twice for a single header. Is there any way out wherein I can just display the icon once on a mouse click.

I think the problem is b'coz the renderer is being called twice - once when the table is initialised for showing the multi line header & the other on a mouse click for displaying the icon.

Can anyone suggest me as to why is this happening...

Any help will be appreciated..

Thanx.

Regards,
-Neha.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic