/* Java Program On Flow Layout. The Components Inclues Buttons, TextField, label. Done using Applets.*/
import java.awt.*;
import java.applet.*;
public class FlowApp extends Applet
{
public void init()
{
TextField t1 = new TextField(20);
Label l1 = new Label ("Name");
Button b = new Button("OK");
TextField t2 = new TextField(20);
Label l2 = new Label ("Name");
Button b1 = new Button("OK");
add(l1);
add(t1);
add(b);
add(l2);
add(t2);
add(b1);
}}
//< applet code =FlowApp width = 500 height = 500>< /applet>
Subscribe to:
Post Comments (Atom)
Post a Comment