| .. | .. |
|---|
| 8 | 8 | int numComps=0; |
|---|
| 9 | 9 | int x1=80; |
|---|
| 10 | 10 | int width=200; |
|---|
| 11 | | - int compH=30; |
|---|
| 11 | + int compH=20; |
|---|
| 12 | 12 | DottedLine line=new DottedLine(); |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | public ComponentCluster(String name) |
|---|
| .. | .. |
|---|
| 25 | 25 | { |
|---|
| 26 | 26 | add(c); |
|---|
| 27 | 27 | c.setBorder(null); |
|---|
| 28 | | - c.setBounds(x1,10+numComps*compH, c.getPreferredSize().width, c.getPreferredSize().height); |
|---|
| 28 | + c.setBounds(x1,numComps*compH, c.getPreferredSize().width, c.getPreferredSize().height); |
|---|
| 29 | 29 | numComps++; |
|---|
| 30 | | - line.setBounds(x1-10,10,1,numComps*compH-5); |
|---|
| 30 | + line.setBounds(x1-10,10,0,numComps*compH); |
|---|
| 31 | 31 | } |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | public Dimension getPreferredSize() |
|---|