Solved

getPassword() of JPasswordField

Posted on 1998-09-16
1
384 Views
Last Modified: 2012-08-13
I am still facing error in my program
It says getPassword() method not found in JPasswordField

This is part of my program code
I have imported
import java.awt.swing.JPasswordField;
In jdk1.2 beta 3 this is the syntax.

 JPasswordField input = (JPasswordField)e.getSource();
                char[] password = input.getPassword();
Can anybody give me solutions
0
Comment
Question by:geostp
1 Comment
 
LVL 1

Accepted Solution

by:
cph earned 10 total points
ID: 1224370
Are you sure that the classpath and all the other setting are properly set to the jdk1.2 beta3?
Try to replace getPassword() by getText(), if this one works it means that you enviroment varaible are not set to the jdk1.2.

CpH
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

707 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

13 Experts available now in Live!

Get 1:1 Help Now