package javaTutorials.net;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JTextField;


public class Example {

	static JTextField textfield1, textfield2, textfield3;
	
	 public static void main(String[] args) {
		  		  
		    JFrame f = new JFrame("Text Field Examples");
		    f.getContentPane().setLayout(new FlowLayout());
		    textfield1 = new JTextField("Text field 1",10);
		    textfield2 = new JTextField("Text field 2",10);
		    textfield3 = new JTextField("Text field 3",10);
		    f.getContentPane().add(textfield1);
		    f.getContentPane().add(textfield2);
		    f.getContentPane().add(textfield3);
		   
		    f.pack();
		    f.setVisible(true);
		  }
}

@@ -13,17 +13,16 @@
 Tutorial
-s
 .net;%0D%0Ai

Update Example.java