| Author |
Can we set a sepecific font to a praticular column in Jtable
|
Maheswaran Devaraj
Ranch Hand
Joined: Sep 14, 2007
Posts: 47
|
|
Hi All,
Can we set a specified font type to a particular column in the Jtable. If can please give me a sample.
Thanks in Advance,
Mahes
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8441
|
|
You can do it by providing a custom renderer for the column.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Maheswaran Devaraj
Ranch Hand
Joined: Sep 14, 2007
Posts: 47
|
|
while try with cell renderer, we can do it while click the particular column in the table. I want to do that default.
regards,
Mahes
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8441
|
|
Maheswaran Devaraj wrote:while try with cell renderer, we can do it while click the particular column in the table. I want to do that default.
regards,
Mahes
I do not understand what you mean to say.
Can you please rephrase it?
|
 |
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
|
posted

0
|
> while try with cell renderer, we can do it while click the particular column in the table. I want to do that default.
you do it via the renderer, using the 'column' argument as the condition
|
 |
 |
|
|
subject: Can we set a sepecific font to a praticular column in Jtable
|
|
|