Font Awesome Icons

Tutorial

AWT Label

A label is an informatory GUI component that typically describes another component. For example, you see a label Username side of a username field to tell you that the textfield is for typing username.

Java AWT Label

import java.awt.*;   

class Label1 extends Frame{   

public static void main(String args[])

{       

Frame f= new Frame(“Label Example”);  

Label l1,l2;       

l1=new Label(“Label 1.”);       

l1.setBounds(30,100, 100,30);       

l2=new Label(” Label 2.”);       

l2.setBounds(30,150, 100,30);       

f.add(l1);

f.add(l2);  

f.setSize(400,400);  

f.setLayout(null);  

f.setVisible(true);  

}