Hidding password in JTextField

Hi there,
which command I use to hide the password in a JTextField?
Am i obligated to hand-treat it ?
name: **** <- typed word...

Hi,
You should use a JPasswordField.
Regards,
Matt.
Java Developer Technical Support
Sun Microsystems.

Similar Messages

  • I need to have my macbook pro repaired how can I hide passwords and banking info?

    I need to have my macbook pro repaired how can I hide passwords and banking info?

    Create a new admin account named repair and only give them the password for that account. Alternately you could back up or clone your system, erase the hard drive and then reinstall OS X with one admin account that has no personal information.

  • I can no longer hide passwords under toolbar/options. What to do?

    I can no longer hide my passwords - under toolbar/options/security. They continually all show up and I'm afraid someone else may be able to see them as well. The option to hide passwords no longer appears.

    Are you using a master password?
    * https://support.mozilla.org/kb/Protecting+stored+passwords+using+a+master+password

  • How to show/hide passwords in outlook

    I can show/hide passwords in yahoo but not in outlook. How do I show in outlook

    I'm guessing you can press the little icon to the right of the password field to see the password. I'm using Ubuntu so I don't know what the icon looks like. It should be like a black WiFi signal or something. You should be able to click/hold that to see the password.
    Were you able to show that password before or is this the first time you've tried? You can try to clear the cookies for outlook.com to see if that helps but as far as I know, Windows 8 should be able to show/hide the password.

  • Hide password on command line

    Dear everybody,
    I would like to find a way to hide password on command line when user type password. There is a way that use another thread to output '\b*'. However, it has some bugs. And I can't use Console class which has a method to hide password. Because my JDK is 1.5 and I can't change it because of some reasons.
    Does anybody know a way to hide password on command line?
    Thanks very much!

    Because my JDK is 1.5 and I can't change it because of some reasons.Look how sweet Console is in 1.6:
    import java.io.Console;
    public class ConsoleExample {
        public static void main(String[] args) {
            Console console = System.console();
            char[] password = console.readPassword("Please enter password:");
            //don't do this: passwords shouldn't be stringified
            String s = new String(password);
            console.format("password =[%s]%n", s);
    }Find a way to install 1.6! We believe in you!

  • Encrypt or hide password in sql script from shell

    Hello
    Have I some possibility to encrypt or hide password in this shell script :
    $ORACLE_HOME/bin/sqlplus -S /nolog<<EOF
    connect user/passw3@tns
    select * from dual;
    exit;
    EOF
    thank You
    Brano

    Or do not use login userid/pw at all. Instead use client authentication (externally identified account).
    CREATE USER ops$me identified externally;
    then as me on the host,
    $ORACLE_HOME/bin/sqlplus / >> /dev/null <<EOF1
    select * from dual;
    exit;
    EOF1
    That way your password never has to be stored or passed. Oracle knows that you have been authenticated by the server.

  • Hide password and confirm password feild.

    I am generating random password through pre-insert adapter, so i want to hide password and confirm password feild
    from user creation page. I have already able to hide feilds like start date and all.

    *<!--*
    <tr>
    <td nowrap class="ControlLabel">
    <bean:message key="createuser.label.password"/>
    </td>
    <td align="right">
    <span class="Asterisk"><bean:message bundle="xlDefaultAdmin" key="global.label.asterisk"/></span>
    </td>
    <td>
    <html:password name="manageUserForm" property="password"
    redisplay="false" styleClass="Fields" tabindex="1"/>
    </td>
    </tr>
    <tr>
    <td nowrap class="ControlLabel">
    <bean:message key="createuser.label.confirmpassword"/>
    </td>
    <td align="right">
    <span class="Asterisk"><bean:message bundle="xlDefaultAdmin" key="global.label.asterisk"/></span>
    </td>
    <td>
    <html:password name="manageUserForm" property="confirmPassword"
    redisplay="false" styleClass="Fields" tabindex="2"/>
    </td>
    </tr> -->

  • How to Hide Password in Member List

    Hi,
    I have this set up:
    instead of the password being shown, I have previously just added ******* instead of the dynamic text binding.
    But i want to be able to see how many characters long the password is. With thte solution above, all passwords had 8 asterisks. I need to be able to see how many characters the password has, without seeing the actuall characters.
    I still need the dynamic text field, but how would I cover this up? (Some sites have the option to hide/reveal the password). I just want it hidden all the time.
    Any help would be very much appreciated!

    This function will replace your password string with the same amount of '*'
    public function ConvertoStar($string)
    $len = strlen($string); $star = "";
    for ( $s=1; $s <= $len; $s++ ) {
      $star .= "*"; 
    return $star;
    echo ConvertoStar($yourvalue)
    But your better off hashing your passwords though - PHP: Password Hashing - Manual

  • How to Hide passwords in the security window?

    I went to the security window to find a password. I clicked to unhide and display all the passwords. Now I want to hide them all again and it will not hide them

    Use a master password.
    *https://support.mozilla.com/kb/Protecting+stored+passwords+using+a+master+password

  • How to create a password with JTextField

    Hi, I need to create a password field on the JTabbedPane. I can create a TextField and setEchoChar to make it a password field. However it is not working well with the rest of the JComponents. Can I do this on a JTextField? I could not find the functionality.
    Thanks for the help!
    -Joanne

    use JPasswordField instead

  • Hidding Password in JSP page

    Hi all,
    I m using the password value in the jsp page as ahidden variable which is thereafter used in the java script. but the problem is that while in view mode of the jsp page if u right click and view the source the password is getting displayed. which should not happen actually. can anybody help me regarding how to hide the password from the public view. i m using the following code for getting the password value.
    <input type="hidden" name="ftpPwd" value='<%=request.getAttribute("ftpPwd") %>' />
    Thanks in Advance
    Nandini

    Yes, I get that. But that's how it works, you can't change that. The best you can do is work with a hash instead of the plaintext password; but that's besides the point.
    What I'm asking is what do you want to achieve? If you explain that then maybe someone can give you a better way to do it.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
    ----------------------------------------------------------------

  • How to hide password when run proc

    hi,
    my database is on oracle 10g, in my application i run proc from remote computer where i hav to write hole the path like
    @server.exe username/password@sid price
    so is there any solution by i can hide my password & no one can know my passowrd where he can see this syntax.
    thxs

    You can put the password string in a file and use that file.

  • How to hide password in EJB client

    I have created an EJB client and it's initial context code is as below.
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "scott" );
    env.put( Context.SECURITY_CREDENTIALS, "welcome1" );
    env.put(Context.PROVIDER_URL, "ormi://132.100.5.248:23791/ejbhr");
    The password is shown within the code. Please advise how I can hide this password, thanks.
    SK

    Hi Mike,
    Thanks for your information. From the documentation, password indirection applies to data-sources.xml, ra.xml, rmi.xml, jms.xml. My case is that the password is contained inside a Java program. Would you please provide me an example on how to apply password indirection for EJB client Java program? Much thanks.
    SK

  • How to hide password in forms config file

    Hi
    Is there a way to hide the password in the forms config file?
    Regards,
    Néstor Boscán

    Hi,
    you cannot. For a future version we are condering password indirection, which is a feature of OC4J. However, until then the option to use is to implement Single Sign-On with Forms as this storeds username and password in OID
    Frank

  • [solved] weechat How *Not* To Hide Password in Input Bar.

    I am trying to setup weechat with znc. I need to enter the -password option in the input bar. Since it's going to be long as in username/network:password I don't want weechat to hide what I am typing by displaying "*", so I can easily spot and correct typos. There must be an option to stop weechat trying to obscure my password, but I can't find it. Can someone please enlighten me?
    Last edited by geekinthesticks (2014-06-21 08:43:25)

    I suggest you install the `iset' plugin, as it's very helpful in situations like this. As far as i know, the only setting that covers the `hide the password' issue, is `irc.look.nicks_hide_password' and its default value is `nickserv', so it should hide the password when identifying on nickserv. Still, if you're concerned about typos, you should add the server with a fake password as `aaaaaa' then use iset to change the password, as it is in plain text (or just do `/set irc.server.<your znc server>.password username/network:password').
    Last edited by psycho (2014-06-20 19:37:06)

Maybe you are looking for

  • My notes app keeps freezing when I try to delete a note

    My notes app keeps freezing every time i try to delete a note. Here is what I get: Process:         Notes [4034] Path:            /Applications/Notes.app/Contents/MacOS/Notes Identifier:      com.apple.Notes Version:         1.1 (99) Build Info:     

  • IOS adhoc displays black screen after launch

    Hi, my iOS application displays black screen after slash screen.nothing happens and couldn't see any proper errors on debug utility. I can build adhoc using flash builder and it's works fine but problem occurs when I create ipa using dumped config fi

  • Adding Radio button & regular button to selection-screen without new gui

    Hi, Is there a way to add a radio button & regular button to a selection-screen without having to create a new gui, status and etc? Thanks, John

  • A POSITIVE thread in this forum for once

    i posted here before i got my macbook, with worries that it would have some problems like everyone else here, but i've had my MB for 3 days, and its been working fine, nothing wrong yet keyboard is great, screen is beautiful, photobooth is great when

  • Every time I try to sync or use iTunes since Mavericks update it crashes

    Ever since I installed Maverick on my apple devices I cannot get any new items transferred to my ipad,iphone or watch a film on home share as Itunes just crashes when it is used.  If its just running in the back ground it will stay open for quit a wh