JDK-4228776 : disabling a particular column of a JTextField
  • 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: 1999-04-12
  • Updated: 2000-04-26
  • Resolved: 2000-04-26
Related Reports
Duplicate :  

Name: dbT83986			Date: 04/12/99

I would like to have a time field which can be incremented or decremented or can be entered through key board which I can fill it up as hh:mm:ss  I don't want the user to delete the :, I'm doing the valildations in which I'm using Integer.parseInt(Str);
If the user deltes the : the next : comes in to my parseInt and it raises an NumberFormatException.  Isn't it nice to provide a feature which will disable a particular column on a JTextField.  Reply Excepted.
(Review ID: 56863) 

EVALUATION we plan to offer some kind of mask-based field for merlin. timothy.prinzing@eng 2000-03-22 As Tim mentions, this feature will be added as part of formatted text fields/spinners for merlin. This feature is being tracked as bug 4290529, which I am closing this a dup of. scott.violet@eng 2000-04-26