?
Solved

getPassword() of JPasswordField

Posted on 1998-09-16
1
Medium Priority
?
397 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
[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
1 Comment
 
LVL 1

Accepted Solution

by:
cph earned 20 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
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 …
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

764 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