Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.DateFormat;
import java.util.Date;

import javax.swing.JFormattedTextField;

public class Main {
    public static void main(String[] argv) {

        JFormattedTextField tft2 = new JFormattedTextField(DateFormat.getDateInstance(DateFormat.SHORT));
        tft2.setValue(new Date());

    }
}