A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Changing the font size in java GUI
Joined: Nov 16, 2011
Nov 16, 2011 11:36:29
The problem basically is when I change the font size in Display Properties (specifically in Control Panel) the font in the GUI does not change.
The following steps give more explanation about the problem:
I changed the font size of the system.
After the font has been changed:
As you see in the picture:
the change happened to number 1 (The title of the GUI) but nothing happened to number 2 (File - Type Definition - ... etc).
My question is Is there any way to fix this problem in Java (adding some code , ... ) ?
Joined: Jun 09, 2003
Nov 16, 2011 17:06:39
in many of the L&F's, most of the components of the titlebar (buttons/menu/title label etc)
are controlled by the System (unless this has changed in recent versions).
all you've done is change the System font, now you need to change
's font, for the
component/s or for the application.
easiest way is via the
Joined: Jun 13, 2009
Nov 16, 2011 22:01:31
Be Forthright When Cross Posting to Other Sites
In fact there was no need to even post this question. Notice how you got the same answer in your original question?
Joined: Oct 13, 2005
Nov 17, 2011 01:49:33
Welcome to the Ranch
Rob Camick is correct; you can’t expect several people to answer the same question.
It is sorta covered in the
JavaRanch Style Guide
subject: Changing the font size in java GUI
B&S: Passed 373/400
JasperReports: duplicate images on report!
GC problems, heap grows
BA #1.....banknote association
Struts 2.1 error message breaks page html formatting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013