Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have downloaded a Java program with a GUI. I do not have its source.

I am wondering if there is a general Java configuration to change font size in all programs (or, even better, in this one program)

This program seems to be made with Swing

share|improve this question
if it is of any use, the program is from the Brasil's IRS – josinalvo Apr 24 '12 at 18:12
up vote 0 down vote accepted

Lot of details are missing here. I couldn't find a link for it online which would have answered many questions. But on a general note, unless application specifically exposes an option inside its configuration file or as a commandline option for font, you cannot set a font size for the entire app. IMO, look inside a user manual that should tell you how to achieve this.

Link above talks about specifying a directory of fonts that will be avaliable to the application. Mind you that link talks about IBM JVM and not Oracle JVM( Formerly Sun JVM)

This link listed all the available system properties for java command and font isn't one of them.

This question should be posted on StackOverFlow for more exposure and more precise answer.

share|improve this answer
(…) This is the program. I did not think to link it, since I assumed there was a general configuration, and I just had not found it. I'll post it to stackoverflow. What other information should I add to make the question precise enough ? Thanks! – josinalvo Apr 26 '12 at 16:05
I don't read portugese, but a look at the read_me file showed me this. "To use the program PIT 2012, requires that the monitor is set to 1024 x 768 pixels or larger and small fonts." I looked at the, there are no options other than help. Try java -jar irpf.jar --help. Also try searching for são inside the help file. It seems to show some results, I just can't read them. Java does not honor system look and feel, so even if you change your computer's font to be bigger, it will not affect you application. Basically modifying the code is your only way to go at this point. – ShaggyInjun Apr 27 '12 at 0:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.