• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing the font size in java GUI  RSS feed

 
Nassar Mohanad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

1.
I changed the font size of the system.


2.
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 , ... ) ?

Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 java's font, for the
component/s or for the application.

easiest way is via the UIManager.
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be Forthright When Cross Posting to Other Sites

http://www.java-forums.org/new-java/51325-changing-font-size-java-gui.html

In fact there was no need to even post this question. Notice how you got the same answer in your original question?
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
Rob Camick is correct; you can’t expect several people to answer the same question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!