JFormattedTextField can format the text. - Java Swing

Java examples for Swing:JFormattedTextField

Description

JFormattedTextField can format the text.

Demo Code

import java.util.Date;

import javax.swing.JFormattedTextField;

public class Main {

  public static void main(String[] args) {
    JFormattedTextField dobField = new JFormattedTextField();
    dobField.setValue(new Date());
  }// w  w w. j  a v  a 2 s . com
}

Related Tutorials