Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4366978
Votes 1
Synopsis Kestrel linux password field "DELETE" key functionality is broken
Category java:classes_awt
Reported Against 1.3
Release Fixed
State 11-Closed, Not Reproducible, bug
Priority: 3-Medium
Related Bugs
Submit Date 30-AUG-2000
Description



OS: RedHat Linux 6.2 KDE
JDK: jdk1.3.0rc1-b17

DELETE key functionality is broken in JPasswordField. 
Instead of deleting characters,pressing "Delete" key prints 
stars '*' into JPasswordField.
To reproduce bug:
1- Compile and run the following code
2- type some text into JPasswordField
3- Press the "Home" key to get to start of text
4- Press "DEL" key continuously
5- Note that none of the characters are deleted, and that more characters
are inserted.

----------Code---------------

/* Copyright (c) Sun Microsystems 1998

$Header: /home/sun/src/JDK1.2/jPasswordField.java,v 1.13 2000/03/30 08:13:08 isam Exp $

*/

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

public class jPasswordField extends JApplet
{
public void init()
{ 
        pass1 pass = new pass1();
        getContentPane().add(pass);
}

public static void main(String[] argv)
{

        JFrame frame = new JFrame("\u0645\u062b\u0627\u0644");
        frame.setContentPane(new pass1());
        frame.pack();
        frame.setVisible(true);
        frame.addWindowListener( new WindowAdapter()
        {
             public void windowClosing( WindowEvent e)
             {
                 System.exit(0);
             }
        });

}
}

class pass1 extends JPanel
{
public pass1()
{

        JPanel p = new JPanel();
        p.setLayout(new GridLayout(2, 2, 2, 2));
        JLabel label1 = new JLabel();
        label1.setFont(new Font("Lucida Sans regular",Font.PLAIN,10));
        label1.setText("\u0627\u0644\u0625\u0633\u0645\u0020\u05e9\u05dd");
        p.add(label1);
        p.add(new JTextField());
        JLabel label2 = new JLabel();
        label2.setFont(new Font("Lucida Sans regular",Font.PLAIN,10));
        label2.setText("\u05e1\u05e1\u05de\u05d4\u0020\u0643\u0644\u0645\u0629\u0020\u0627\u0644\u0633\u0631");
        p.add(label2);
        JPasswordField pass = new JPasswordField();              
        pass.setEditable(true);
        p.add(pass);
        setLayout(new FlowLayout()); 
        add(p);
        validate();
}
}

-----------------------------

WorkAround:
======================================================================
Work Around
N/A
Evaluation
Middle keyblock delete key should work like keypad delete key.
 xxxxx@xxxxx  2000-09-25

from the original submitter Isam:
- Testing under Merlin b52/ Not fixed yet
- Testing under LadyBird b15, Fixed
 xxxxx@xxxxx  2001-03-01

The bug is not reproducible in Merlin build b58.
Submitter, please verify that the bug is fixed.
 xxxxx@xxxxx  2001-03-30

Closing not reproducible.
 xxxxx@xxxxx  2001-04-24
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang