Results 1 to 5 of 5
- 02-22-2009, 05:49 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 6
- Rep Power
- 0
- 02-22-2009, 06:11 AM #2
Member
- Join Date
- Jan 2008
- Posts
- 31
- Rep Power
- 0
Font font = new Font ("Serif", Font.PLAIN, 24);
g.setFont (font);
g.drawString("24 is the font size in the first line of code", 20, 50);
- 02-22-2009, 06:13 AM #3
Member
- Join Date
- Feb 2009
- Posts
- 6
- Rep Power
- 0
is there any other way?
- 02-22-2009, 06:29 AM #4
Member
- Join Date
- Jan 2008
- Posts
- 31
- Rep Power
- 0
what like this I stole from another thread at this web site.
Java Code:JLabel label = new JLabel("My Label"); java.awt.Font font = new java.awt.Font("Dialog",Font.BOLD,14); label.setFont(font);
- 02-22-2009, 06:31 AM #5
Member
- Join Date
- Feb 2009
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
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 -
changing font size
By diggitydoggz in forum New To JavaReplies: 1Last Post: 12-25-2008, 07:48 AM -
How to change The Font
By kader in forum New To JavaReplies: 2Last Post: 09-15-2008, 04:09 AM -
How to use TextAttribute class to change color and font of a text
By Java Tip in forum java.awtReplies: 0Last Post: 06-25-2008, 10:33 AM -
how to set font size for a xml value
By bala_kj in forum Advanced JavaReplies: 3Last Post: 04-01-2008, 11:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks