A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
How can I increase the size of a Font?
Ashok Pradhan
Ranch Hand
Joined: Dec 17, 2007
Posts: 179
I like...
posted
Feb 26, 2009 11:39:45
0
I have Created a Font object by createFont() method by default its size is 1,How can I increase its size ,please help me.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
Feb 26, 2009 11:42:20
0
deriveFont()
Brian Cole
Author
Ranch Hand
Joined: Sep 20, 2005
Posts: 852
posted
Feb 26, 2009 15:14:56
0
Michael Dunn wrote:
deriveFont()
Be sure to pass a
float
value to deriveFont(), even if you want an integral font size.
Passing an
int
may not work as you might expect.
Ashok Pradhan
Ranch Hand
Joined: Dec 17, 2007
Posts: 179
I like...
posted
Feb 26, 2009 19:02:42
0
Thanks !!!
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How can I increase the size of a Font?
Similar Threads
Wrong font size in JEditorpane
JTable Header
jtextarea change font size
Help !!!!!!!!! java print program
Increasing font size in Eclipse
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter