This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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.
 
GeeCON Prague 2014
 
subject: Limiting characters typed in JPasswordField