Results 1 to 3 of 3
  1. #1
    eva
    eva is offline Member
    Join Date
    Dec 2007
    Posts
    49
    Rep Power
    0

    Default Taking passwords on the console

    Hi,

    I have a Java application without GUI. I take login id and password on the console. Therefore the login id and password can be seen by any one around which is not acceptable. How can i display **** while entering password. Is there some API for that?

    -PEACE

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    You can use a JPasswordField in a JOptionPane. See How to Use Password Fields.

  3. #3
    eva
    eva is offline Member
    Join Date
    Dec 2007
    Posts
    49
    Rep Power
    0

    Default

    Thanks. I using command prompt and don't want to use JOptionPane.
    It means there is not way to take passwords from command prompt?

    - PEACE

Similar Threads

  1. Taking input from Properties File
    By bugger in forum New To Java
    Replies: 4
    Last Post: 05-07-2008, 09:30 AM
  2. Taking Java In School Need Help
    By xEuPhOrIcSx in forum New To Java
    Replies: 7
    Last Post: 02-04-2008, 08:02 AM
  3. Console doesn't appear!
    By PeteMarsh in forum New To Java
    Replies: 2
    Last Post: 12-17-2007, 05:41 PM
  4. Replies: 0
    Last Post: 12-15-2007, 08:29 AM
  5. Taking input from console
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-05-2007, 04:47 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
  •