BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home

Change fonts size for SquirrelSql and other Java Swing Apps for hidpi monitors

daniel —Wed, 09/27/2017 - 11:20am

  • SQL

From stackoverflow

Boils down to adding a couple of Java switches to the start script:
-Dswing.plaf.metal.controlFont=Tahoma-18 -Dswing.plaf.metal.userFont=Tahoma-18

For example, in squirrel-sql.sh, modify this line to include the above:
$JAVACMD -Xmx256m -Dswing.plaf.metal.controlFont=Tahoma-24 -Dswing.plaf.metal.userFont=Tahoma-24 -cp "$TMP_CP" $MACOSX_SQUIRREL_PROPS -splash:icons/splash.jpg net.sourceforge.squirrel_sql.client.Main --log-config-file "$UNIX_STYLE_HOME"/log4j.properties --squirrel-home "$UNIX_STYLE_HOME" $NATIVE_LAF_PROP $SCRIPT_ARGS

  • Log in to post comments

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Fri, 07/01/2011 - 12:51pm

The best method for accelerating a computer is the one that boosts it by 9.8 m/s2.

—

Anonymous

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Spring Batch and Grails
  • Encrypting your maven repo password
  • Fetch all messages every time with a Spring Integration IMAP adapter
  • Large Heaps for the JVM
  • Solr Near Realtime Indexing

Copyright 2021 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About