File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Limiting characters typed in JPasswordField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Limiting characters typed in JPasswordField" Watch "Limiting characters typed in JPasswordField" New topic
Author

Limiting characters typed in JPasswordField

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
How can you limit the number of characters typed in a JPasswordField?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
See the section Implementing a Document Filter on the Text Component Features page in the java tutorial.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Limiting characters typed in JPasswordField
 
Similar Threads
which class to use for password with no echo(not Console class)
GUI - darklight input in the password field
Password Circles
regarding the JPasswordField
Cursor position in a JPasswordField