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

JPasswordField : Cursor not placed properly.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.1.5, 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      swing1.1
    • CPU:
      generic, x86, sparc
    • OS:
      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

              Assignee:
              tprinzinsunw Timothy Prinzing (Inactive)
              Reporter:
              mmadhugisunw Mukund Madhugiri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: