Login    New User    Forgot Password    Help      

Label

Java Tutorials

Example

import java.awt.*;
import java.applet.*;

public class control1 extends Applet
{
public void init()
{
Label one=new Label("One");
Label two=new Label("Two");
Label three=new Label("Three");

add(one);
add(two);
add(three);
}
}

Output

Output in Applet

Java Tutorials