Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4408716

Unicode characters display as square boxes

XMLWordPrintable

    • 2d
    • beta
    • x86
    • windows_nt

      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

            pkejriwasunw Parry Kejriwal (Inactive)
            atongschsunw Albert Tong-schmidt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: