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: 4078587
Votes 0
Synopsis TextField: After setEchoChar() called. can't "type over" selected range
Category java:classes_awt
Reported Against 1.1.3 , kestrel-rc3
Release Fixed
State 6-Fix Understood, bug
Priority: 4-Low
Related Bugs 4068237 , 4307281
Submit Date 12-SEP-1997
Description
orig synopsis:
  "Error handling mouse highlighting in TextField after setEchoChar() called."




In a TextField which is displaying the text
entered, the user can highlight text with the 
mouse or cursors and then either press delete to 
erase the text or just type, which will overwrite
the selected text.

If setEchoChar has been called on the TextField,
although highlight-delete still works, highlight-
overtype does not.

Example source:

------ begin EchoCharBug.java ------
import java.awt.*;
 
public class EchoCharBug extends Frame
{
        private TextField tf;
 
        public EchoCharBug ()
        {
                tf = new TextField (30);
                tf.setEchoChar ('*');
                add (tf);
                pack ();
        }
 
        public static void main (String args[])
        {
                EchoCharBug app = new EchoCharBug ();
                app.show ();
        }
 
}
------- end EchoCharBug.java -------

Running under SOlaris 2.5.1 / OpenWindows 3.5.1


Dave Richerby.

======================================================================
Work Around





======================================================================
Evaluation
Bug exhibits the described behavior. 
Related to 4084454 and 4078587.

  xxxxx@xxxxx   1997-12-05


-----------

5/8/2000   xxxxx@xxxxx   -- same behavior under kestrel (1.3.0-C) on Solaris 2.7.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang