Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Changing the Font of a JOptionPane -
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