|
Quick Lists
|
|
Bug ID:
|
4097100
|
|
Votes
|
13
|
|
Synopsis
|
Swing 0.6.1 - JTextField should allow to limit number of input chars
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
1.1.4
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4290529,
request for enhancement
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4290529
|
|
Submit Date
|
04-DEC-1997
|
|
Description
|
JTextField does allow to set a limit to the number of characters that can
be entered (and set from outside). This drawback has been inherited from
the TextField.
It does not allow, however, to set max number of chars allowed to be entered
and disable scroll after number of entered chars reached. This is particularly
useful when interfacing legacy systems where text fields have length
limitations in most cases.
(Review ID: 21329)
======================================================================
|
|
Work Around
|
xxxxx@xxxxx 12/04/97
Subclass the com.sun.swing.text.PlainDocument to limit the number
of characters that can be entered and subclass the JTextField to
return a new instance of that subclass in the createDefaultModel().
======================================================================
|
|
Evaluation
|
This would likely be a feature of an enhanced text field planned for merlin.
xxxxx@xxxxx 2000-03-22
This feature is being tracked through, 4290529, which I am closely this out as a dup of.
xxxxx@xxxxx 2000-07-21
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |