Computer Science Canada HOW to set font size and color for JButton? |
Author: | rated [ Fri May 22, 2009 7:48 pm ] |
Post subject: | HOW to set font size and color for JButton? |
I am using setText to label my JButtons. Is there any way I can specify the font size and color of the text on the JButtons? Thanks |
Author: | HellblazerX [ Sat May 23, 2009 11:44 am ] |
Post subject: | RE:HOW to set font size and color for JButton? |
You can use the JButtons.setFont (Font) method to set a new font. However, I don't think you can change the color of the text. |
Author: | Dark [ Sat May 23, 2009 2:07 pm ] | ||
Post subject: | RE:HOW to set font size and color for JButton? | ||
what about
|