4

How can i center the content of JTable Header which has a nimbus look and feel? I tried to use DefaultTableCellHeaderRenderer, but it look like this;

JTable Header with Nimbus Look and Feel

is there any way to make them all look like PARENT_ID column's and centered?

mKorbel
  • 109,107
  • 18
  • 130
  • 305
MOD
  • 1,040
  • 3
  • 18
  • 41

1 Answers1

7

This example shows one approach. By using the table header's DefaultTableCellRenderer, it minimizes the impact on the UI delegate's appearance.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974