Created
October 28, 2018 18:11
-
-
Save vainolo/c64ccc045c558ee37e1d763f688c28e1 to your computer and use it in GitHub Desktop.
Changing the Font of a JOptionPane -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); | |
String[] fontNames = ge.getAvailableFontFamilyNames(); | |
for (int index = 0; index < fontNames.length; index++) { | |
System.out.println(fontNames[index]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment