Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.NumberFormat;

import javax.swing.JFormattedTextField;

public class Main {
    public static void main(String[] argv) {
        JFormattedTextField tft1 = new JFormattedTextField(NumberFormat.getIntegerInstance());
        tft1.setValue(new Integer(123));

        Integer intValue = (Integer) tft1.getValue();
    }
}