This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we change font or size of a particular column in jtable

 
santosh kimothi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Rob Camick
Ranch Hand
Posts: 2539
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why did you use the "Code" tags for your question? Did you not use the "Preview" button to make sure the question made sense? You can alse edit your question to make changes.

Start by reading the section from the Swing tutorial on "How to Use Tables".

The tutorial has a working example on how to change the size of a column.

For the font you will need to create a new instance of the DefaultTableCellRenderer, and add the renderer to the column. Then you can change the Font for that rendererer only.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic