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

TextField.setEchoChar doesn't work with a Unicode character

XMLWordPrintable

    • Fix Understood
    • x86
    • windows_95

      [joconner 9/29/97]
      That's weird. When I try this, the character U+0025, the '%', is echoed. :)
      Anyway, yes, this is a problem. I'll look into it.
       
      masayoshi.okutsu@Eng 1997-01-09
      When you specify \u25ef in TextField.setEchoChar(), '*' is echoed.
      To reproduce, exec the following.

      import java.awt.* ;
      public class testTextField extends java.applet.Applet {
          Frame window ;
          public void init() {
      window = new MyFrame("test case of java.awt.ScrollPane") ;
      window.resize(300,100) ;
      window.show() ;
          }
      }

      class MyFrame extends Frame {

          MyFrame(String title) {
      super(title) ;

      TextField tf = new TextField(20) ;
      tf.setEchoCharacter('\u25ef') ;
      add(tf) ;

      setLayout(new FlowLayout(FlowLayout.CENTER)) ;
          }
      }

            Unassigned Unassigned
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: