Results 1 to 3 of 3
Thread: font color
- 02-26-2010, 05:58 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 90
- Rep Power
- 0
font color
I'd like to define a font ( face, style, size, and color) once at the beginning of my program, then apply it to my text components.
I have taken care of the font face, style, and size with
Font font = new Font( "chalkboards", Font.PLAIN, 24);
How do I set the color as well?
If these is a better way to do all these tasks, I'd love to know.
Thanks a million!
- 02-26-2010, 06:02 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 03-01-2010, 03:58 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 90
- Rep Power
- 0
Similar Threads
-
Changing println font color
By xcallmejudasx in forum New To JavaReplies: 4Last Post: 05-21-2009, 04:05 PM -
How to change font/ font color etc in a graphic object using JCombobox?
By JavaInLove in forum AWT / SwingReplies: 5Last Post: 04-25-2009, 08:00 PM -
to set toolItem font color
By vidyakkk in forum SWT / JFaceReplies: 0Last Post: 01-30-2009, 03:06 PM -
Making your own font/foreground-background color?
By Durnus in forum Java 2DReplies: 6Last Post: 01-02-2009, 09:36 PM -
Disabled JButton font color
By p900128 in forum Advanced JavaReplies: 1Last Post: 07-24-2008, 08:16 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks