Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting RowHeader Font ???  RSS feed

 
Seema Hanji
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to set JScrollPane RowHeader font ??
I tried scrollPane.getRowHeader().setFont(...) , but didn't work.
Please Help...
Thanks in advance,
Seema
[This message has been edited by Seema Hanji (edited November 29, 2001).]
[This message has been edited by Seema Hanji (edited November 30, 2001).]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing this for a JTable?

If so, then you can create a custom column header by extending a class like JLabel or JTextField that implements TableCellRenderer. Then, for each column in the table call setHeaderRenderer( renderer ).

-Nate
 
Seema Hanji
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes this is for JTable.
But this is RowHeader , hence for each row . I cannot use custom column renderer for this .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!