JDK-4468474 : JFormattedTextField constants don't follow java naming conventions
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-06-11
  • Updated: 2001-06-22
  • Resolved: 2001-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.0 beta2Fixed
Description
JFormattedTextField defines the following constants:

    public static final int CommitValueOnFocusLost = 0;
    public static final int CommitOrRevertValueOnFocusLost = 1;
    public static final int RevertValueOnFocusLost = 2;
    public static final int PersistValueOnFocusLost = 3;

which do not follow the java naming conventions.
As we are going to change them, they can be shortened to the following:

    public static final int COMMIT = 0;
    public static final int COMMIT_OR_REVERT = 1;
    public static final int REVERT = 2;
    public static final int PERSIST = 3;

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta2 FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2
2004-06-14

EVALUATION Yes, these constants should change. scott.violet@eng 2001-06-11 The constants have been changed to match those in the description. scott.violet@eng 2001-06-15
2001-06-11