Solved

setEchoCharacter problem in Netscape for BSDI

Posted on 1997-05-08
2
226 Views
Last Modified: 2010-05-18
In an applet I'm working on, when I set a textfield's
echo character (via setEchoCharacter) to '\0' to reset it
to normal operation after setting it to '*' for password
entry, the textfield becomes unusable (ie: does not accept
keyboard input).  This is only a problem under Netscape for
UNIX (FreeBSD and BSDI... maybe others also).

Is there a work around for this bug?
0
Comment
Question by:dsnider
2 Comments
 
LVL 6

Accepted Solution

by:
jpk041897 earned 20 total points
Comment Utility
According to sun documentation in JDK 1.02, there is no way that you can reset a textboxs echo character back to normal operation, although you can set it to a different echo character.. Its documented as a "feature" not a bug.

I'm not sure about 1.1 but I belive this behaviour was maintained. At any rate, if you are using Netscap 3.x, you are using jdk 1.02 so the particular issue is moot.

Workarround:

Place 2 textboxes in the same place placed so that they both ocupy the same coordinates inside the frame. Say txt1 and passtxt. Then in the init method() or equivalent do:

txt1.enable(false);
txt1.setVisible(false);
passtxt.enable(true);
passtxt..setVisible(true);

Once you have procesed the event for the password, you can end the event by inverting the display logic.

Hope this helps.
0
 

Author Comment

by:dsnider
Comment Utility
I figured I'd have to resort to such measures... I just don't
understand why setEchoCharacter('\0') works in just about EVERY
JAVA implementation there is EXCEPT _some_ versions of Netscape.

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now