• 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: 2613
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