JDK-4196276 : JTextField needs easy/convenient way to limit total # of input chars
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_2.6,windows_95
  • CPU: generic,x86
  • Submitted: 1998-12-10
  • Updated: 2000-07-21
  • Resolved: 2000-07-21
Related Reports
Duplicate :  
Duplicate :  

Name: krT82822			Date: 12/09/98

Original synopsis(subject):  "No easy way to limit the length of input to a JTextField"

The subject says it all.  "Make the common things
easy and the complicated things possible" is what
I keep hearing.  Limiting the number of characters
than can be typed into a text field is a very
common need, but I see no simple way to do it.
(Review ID: 33502)

EVALUATION This can easily be done by customizing the Document. For merlin however, we will have some kind of mask field support which would cover this kind of functionality. timothy.prinzing@eng 2000-03-22 This feature is being tracked through 4290529, which I am closely out as a dup of.