import java.awt.*;
import javax.swing.*;
import java.util.*;

public class CheckTextField1{
  public static void main(String args[]){
     JFrame frame=new JFrame("CheckTextField");
     frame.setSize(600,400);
     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

     JTextField    c1=new JTextField("Some Text");
     JFormattedTextField c10=new JFormattedTextField(new Integer(10));
     JFormattedTextField c11=new JFormattedTextField(new Integer(10));
     JFormattedTextField c12=new JFormattedTextField(new Float(10.2E20));
     JFormattedTextField c13=new JFormattedTextField(new Double(10.2E20));
     JFormattedTextField c14=new JFormattedTextField(new Date());
     
     JBox body=JBox.vbox(c1,c10,c11,c12,c13,c14,JBox.vglue());
     body.setFont(new Font("Arial",Font.PLAIN,20));
     JBox.setSize(c1,600,50,10000,0);
     JBox.setSize(c10,600,50,10000,0);
     JBox.setSize(c11,600,50,10000,0);
     c11.setHorizontalAlignment(SwingConstants.RIGHT);
     JBox.setSize(c12,600,50,10000,0);
     JBox.setSize(c13,600,50,10000,0);
     JBox.setSize(c14,600,50,10000,0);
     frame.add(body);
     frame.setVisible(true);
  }
}
