Solved

setEchoCharacter problem in Netscape for BSDI

Posted on 1997-05-08
2
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
jpk041897 earned 20 total points
ID: 1220249
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
ID: 1220250
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

696 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