background image

4

2

5

1

3

0011 0010 1010 1101 0001 0100 1011

3

     

2. 组件的定位和大小

途径 :

1) 容器的布局管理器  , setLayout( 指定

布局管理器 );

2) 用提供的方法 
setSize(),setLocation();paint() ;
setVisible()

Container 的方法

Component 的方法