JDK-4205412 : Require setMaximumLength(int) on JTextComponent
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: x86
  • Submitted: 1999-01-24
  • Updated: 2000-03-23
  • Resolved: 2000-03-23
Related Reports
Duplicate :  
Description

Name: dbT83986			Date: 01/24/99


Would like on JTextComponent:

public void setMaximumLength( int length );

This would set the maximum number of characters
that could be input into a text area. On filling
the area the terminal should beep, change colour
of fields etc. This kind of problem was reported
on the "java.awt.TextComponent",
see bug: #4091850
(Review ID: 36446)
======================================================================

Comments
EVALUATION This kind of behavior is not appropriate on JTextComponent. For example, this would be quite undesirable when editing html. The report seems targeted to fields, so I'm marking this as a duplicate of an rfe that requests this feature on fields.
11-06-2004