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

JPasswordField : Cursor not placed properly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.2.0
    • 1.0.2, 1.1.5, 1.2.0
    • client-libs
    • None
    • swing1.1
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6, windows_nt

    Description

      JPasswordField : The cursor is not displayed in the proper position when characters are typed in. The cursor is displayed beyond the last charcter.
      This is seen on both Solaris and Win NT. This behaviour was not seen in swing-1.0.1. JDK used to test : jdk1.1.6

      Steps to simulate the same,
      1. Run the small app given at the end of the bug report, or just have a JPasswordField.
      2. Keep typing in charcters. - The cursor is displayed away from the last charcater.

      -- Sample App --

      import java.io.*;
      import java.util.*;
      import java.awt.*;
      import java.awt.event.*;
      import com.sun.java.swing.*;


      public class JPF extends JFrame {
      Container content;
      JPasswordField jpf;

      JPF() {
      content = getContentPane();
      content.setLayout(new BorderLayout());

      jpf = new JPasswordField(20);

      content.add("Center", jpf);
      pack();
      show();
      }

      public static void main(String[] args) {
      new JPF();
      }
      }



      -- Sample App --

      Attachments

        Issue Links

          Activity

            People

              tprinzing Tim Prinzing
              mmadhugisunw Mukund Madhugiri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: