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

Last letter of password revealed with Korean characters in JPasswordField

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs



      Name: skT45625 Date: 08/22/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      While typing in a Korean password into a JPasswordField the last-typed character
      is shown instead of the echo character.

      Example source code:

      import javax.swing.*;
      import java.awt.*;

      public class TestPass extends Object
      {
        public static void main(String [] args)
        {
          JFrame frame = new JFrame("Echo Char Tester");
          JLabel passLbl = new JLabel("Enter Password: ");
          JPasswordField passFld = new JPasswordField();

          frame.getContentPane().add(passLbl, BorderLayout.NORTH);
          frame.getContentPane().add(passFld, BorderLayout.SOUTH);

          frame.setSize(200, 80);
          frame.show();
        }
      }

      Compile the program and run it on a Korean Windows System.
      Type Korean characters into the JPasswordField when the dialog pops up.
      (Review ID: 108776)
      ======================================================================

            naoto Naoto Sato
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: