2008-07-25
BorderLayout
this.node = node;
textLabel.setText(node.getName());
BorderLayout borderLayout = new BorderLayout();
borderLayout.setHorizontalSpacing(10); //孩子之间的HorizontalSpacing
label.setLayoutManager(borderLayout);
label.add(textLabel, BorderLayout.CENTER); //孩子的位置
Button button = new Button("按钮");
label.add(button, BorderLayout.RIGHT); //孩子的位置
发表评论
- 浏览: 212 次
- 性别:

- 来自: 北京

- 详细资料






评论排行榜