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); //孩子的位置
  • B89229b0-a171-3d08-be85-5183f7091dba-thumb
  • 描述:
  • 大小: 2.8 KB
评论
发表评论

您还没有登录,请登录后发表评论