In our Java Swing application, we\'re loading a custom font and adding it to a JLabel:
JLabel
try { this.font = Font.createFont(Font.TRUETYPE_FONT, new F
Because StyledDocument extends Document, you may be able use an implementation thereof using JTextField's setDocument() method.
JTextField