import java.awt.*;
import javax.swing.JLabel;
public class GUI {
public static void main(String[] args) {
// TODO Auto-generated method stub
Frame f=new Frame(“hello world图形用户界面”);
Panel pl=new Panel();
JLabel lab=new JLabel(“hello world”);
f.setSize(300,150);
f.setVisible(true);
f.setBackground(Color.black);
f.add(pl);
f.add(lab);
}
}