Unicode characters \u2018 and \u2019 display as square boxes in the "dialog"
plain font. Interestingly they display correctly in the italic version of
this font. Again there's no problem if you change the JTextField to a
TextField.
field = new JTextField("\u2018Test\u2019", 30);
field.setFont(new Font(fontName, Font.PLAIN, fontSize)); - FAILS
.
.
font = new Font(fontName, Font.ITALIC, fontSize); - DISPLAYS FINE
plain font. Interestingly they display correctly in the italic version of
this font. Again there's no problem if you change the JTextField to a
TextField.
field = new JTextField("\u2018Test\u2019", 30);
field.setFont(new Font(fontName, Font.PLAIN, fontSize)); - FAILS
.
.
font = new Font(fontName, Font.ITALIC, fontSize); - DISPLAYS FINE