java applet 中怎么给其中的控件指定显示位置?

来源:百度知道 编辑:UC知道 时间:2024/05/31 22:19:34

1)容器的布局管理器是 null, 并且 组件. setbounds(int x,int y,int width,int height) 来定位.
解释:定位的坐标系是目标容器,仅当目标容器的布局管理器为空时才起作用.

途径二:
使用各种布局管理器来定位

setbounds(int x,int y,int width,int height)