Is there a way to increase the default font size for Java GUI applications?

For what it's worth, I have seen command-line switches that relate to specific packages.

Swing

java -Dswing.aatext=true -Dswing.plaf.metal.controlFont=Tahoma -Dswing.plaf.metal.userFont=Tahoma

Plastic

java -DWindows.controlFont=Tahoma-plain-11 -DWindows.menuFont=Tahoma-plain-12 -DPlastic.controlFont=Tahoma-plain-11 -DPlastic.menuFont=Tahoma-bold-11

Under Windows 10, this could be easily done:

  • select jawaw.exe (or jawaws.exe for jnlp files), it is usually under c:\Program Files (x86)\Java\jre1.8.0_171\bin\
  • Right-click and select Properties.
  • Click the Compatibility tab. Under "Settings," check the Override high DPI scaling behavior option.
  • Under "Scaling performed by" drop-down menu, select System (Enhanced).

You have to repeat this after updates or create a shortcut. (source:windowscentral.com)