Password


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Password

  1. #1
    Join Date
    Feb 2006
    Posts
    14

    Password

    Code:
    password = JOptionPane.showInputDialog( "Enter Password" );
    if (password.equals("agent"))
    {
    	startAgent(); frame.setVisible(false); break;
    }
    else
    {
    	JOptionPane.showMessageDialog(null, "Incorrect Password.", "Error", JOptionPane.WARNING_MESSAGE); break;
    }
    I have a simple password validation code here, and I want to have the password shown as **** - how can I do that please?

  2. #2
    Join Date
    Feb 2006
    Posts
    25
    The only way I can think of is to design a custom form with a JPasswordField on it

Similar Threads

  1. Securing MySQL password on ISP Server
    By Bill in forum Security
    Replies: 1
    Last Post: 02-25-2002, 10:16 AM
  2. --> Re: Oracle73 Password Encryption Function
    By Jeffrey Nuestro in forum Database
    Replies: 4
    Last Post: 01-30-2002, 11:08 PM
  3. Authenticating Username & Password
    By Johan in forum VB Classic
    Replies: 0
    Last Post: 05-04-2001, 06:49 AM
  4. Re: COM object Password Security
    By Tom Shreve in forum Enterprise
    Replies: 0
    Last Post: 04-07-2000, 09:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center