• Post Reply Bookmark Topic Watch Topic
  • New Topic

GUI - darklight input in the password field  RSS feed

 
Ji Li
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am coding a password needing password input using GUI.

The following is text input, and show the input

************************
myTextFieldTableF11.setForeground(Color.black);
myTextFieldTableF11.setBackground(Color.white);
myTextFieldTableF11.setFont(new Font("TimesRoman", Font.PLAIN, 12));
myTextFieldTableF11.setSize(20, 20);
myTextFieldTableF11.setLocation(260, 35);
************************

How to write code the input password?

Thanks a lots
 
John Ip
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Li,

Have a look of the javax.swing.JPasswordField. See whether it serves your purpose or not.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / AWT / SWT / JFace forum...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!