Solved

getPassword() of JPasswordField

Posted on 1998-09-16
1
386 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to track down Infection in a Server 2008 domain user profile 7 51
custom annotations 9 38
Unhandled exception type Exception 18 28
Android development question 2 35
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 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