Monday, May 5, 2008

Java学习笔记(一)

1. BoxLayout
新的布局管理器, 构造方法
BoxLayout(Container target, int axis)

2. setActionCommand() & getActionCommand()
public void setActionCommand(String actionCommand)
public String getActionCommand()


3. addActionListener()
public void addActionListener(ActionListener l)

4. add()
public void add(Component comp, Object constraints)
public static final String BorderLayout.CENTER

No comments:

Post a Comment