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

TextField.setEchoChar doesn't work with a Unicode character

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86
    • OS:
      windows_95

      Description

      [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)) ;
          }
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Imported:
              Indexed: