This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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.
 
 
subject: Limiting characters typed in JPasswordField