基本窗口类:Frame Dialog

基本GUI类:Button Label TextField TextArea CheckBox

基本事件接口:ActionListener WindowListener MouseListener KeyListener

基本布局接口:FlowLayout BorderLayout GridLayout Panel

基本画图支持:Graphics Canvas

Frame类的定义:

public class Frame extends Window implements MenuContainer

{

  public Frame()

  public Frame(String title)

  public String getTitle()

  public void setTitle(String title)

  public MenuBar getMenuBar()

  public void setMenuBar(MenuBar mb)

  public void dispose()

}

Button类的定义:

public class Buttom extends Component

{

  public Button()

  public Button(String label)

  public String getLabel()

  public void setLabel(String label)

  public void addActionListener(ActionListener l)

  public void removeActionListener(ActionListener l)

}

TextField类的定义:

public class TextField extends TextComponent

{

  public TextField()

  public TextField(String text)

  public TextField(int columns)

  public TextField(String text,int columns)

  public void addActionListener(ActionListener l)

  public void removeActionListener(ActionListener l)

}

Applet类的定义:

public class Applet extends Panel

{

  public Applet()

  public String getParameter(String name)

  public AppletContext getAppletContext()

  public void showSataus(String msg)

  //被加载时,init()方法被调用一次,与构造方法类似,可以重载,提供不同的初始化代码

  public void init()

 //Applet被再次访问时,start方法被调用,start方法可以被重载以产生更好的效果

  public void start()

  //当包含Applet的Web页面被其它页面替换时,stop方法被调用。用户离开一个web页面时,stop方法都会产生相应的动作,比如关闭一个动画

  public void stop()

  public URL getCodeBase()

  public URL getDocumentBase()

}