Flow Layout

No Comment - Post a comment

/* 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>

 
This Post has No Comment Add your own!

Post a Comment