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

[ja]Characters shown as square box in popup menu

XMLWordPrintable

    • 2d
    • x86
    • windows

      Problem:
      Some character shown as square boxed shown in popup menu. Like \u3100, \u3111,etc.

      Reproduce:
      1. install jdk from
      http://jre.sfbay/java/re/jdk/6u12/promoted/all/b02/j4b/bundles/windows-i586/jdkfb-6u12-ea-bin-b02-windows-i586-p-08_dec_2008.exe
      2. Compile and run TitleViewFrame.java
      ======================================================================================
      import java.awt.*;


      public class TitleViewFrame extends Frame{

      PopupMenu popit;

      public static void main(String[] args) {
              //Create and set up the window.
              TitleViewFrame frame = new TitleViewFrame();
              
              //Display the window.
              frame.setSize(600, 600);
      frame.setVisible(true);

      frame.setview();

      }


      public TitleViewFrame(){
          super("Title View ronder test");
      }

      public void setview() {
              String chs = new String("\u3110");
              setTitle(chs);
              popit = new PopupMenu(chs);
              popit.add(new MenuItem(chs));
              add(popit);
      popit.show(this, 0, 0);
      }

      }
      ======================================================================================

            Unassigned Unassigned
            lzhaosunw Lucy Zhao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: