Subclass of {@link javax.swing.JFormattedTextField} that attempts to behave in the same way asthe corresponding Forte component(s). To provide a masked and templated date field use: new DisplayProject.DataField(new DateFormatter(new SimpleDateFormat("dd/MM/yyyy"), DateTimeData.class)); To provide a masked field use: MaskFormatter mf = new MaskFormatter("***-******-********"); mf.setPlaceholderCharacter('_'); mf.setValueContainsLiteralCharacters(false); new DisplayProject.DataField(mf); To provide a limited length numeric field: new DisplayProject.DataField(new FixedLengthFieldFilter(Constants.MK_INTEGER, 7));
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.