JDK-4175364 : Adding Swing field widgets which handle numeric input
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-09-22
  • Updated: 2000-07-21
  • Resolved: 2000-07-21
Related Reports
Duplicate :  

Name: clC74495			Date: 09/22/98

The Swing set of widgets is pretty comprehensive.
However, it still lacks, like AWT did, widgets
like JTextField which only allow valid numeric
input. Wouldn't it be a good idea to add something
like JIntegerField and JDoubleField to allow only
integer and double entries, with probably some
means of further restricting the range? Of course,
one could always create these from JTextField, but
having them in the standard set is an obvious
bonus, and I believe they are general enough to be
part of the api. They wouldn't require much work
to program, either, although something like spin
buttons would be a nice touch.

Cheers, and keep up the good work
(Review ID: 37094)

EVALUATION For merlin, we are planning to add an enhanced field. timothy.prinzing@eng 2000-03-22 This feature can be tracked through bug 4290529, which I am closely this out as a dup of. scott.violet@eng 2000-07-21