46 |
import java.awt.LayoutManager2; |
import java.awt.LayoutManager2; |
47 |
import java.io.Serializable; |
import java.io.Serializable; |
48 |
|
|
49 |
|
import gnu.java.awt.AWTUtilities; |
50 |
|
|
51 |
/** |
/** |
52 |
* A layout for swing components. |
* A layout for swing components. |
53 |
* |
* |
153 |
int x = 0; |
int x = 0; |
154 |
int y = 0; |
int y = 0; |
155 |
|
|
156 |
Component[] children = parent.getComponents(); |
Component[] children = AWTUtilities.getVisibleChildren(parent); |
157 |
|
|
158 |
if (isHorizontalIn(parent)) |
if (isHorizontalIn(parent)) |
159 |
{ |
{ |
203 |
int x = insets.left + insets.right; |
int x = insets.left + insets.right; |
204 |
int y = insets.bottom + insets.top; |
int y = insets.bottom + insets.top; |
205 |
|
|
206 |
Component[] children = parent.getComponents(); |
Component[] children = AWTUtilities.getVisibleChildren(parent); |
207 |
|
|
208 |
if (isHorizontalIn(parent)) |
if (isHorizontalIn(parent)) |
209 |
{ |
{ |
248 |
Dimension innerSize = new Dimension(size.width - insets.left |
Dimension innerSize = new Dimension(size.width - insets.left |
249 |
- insets.right, size.height |
- insets.right, size.height |
250 |
- insets.bottom - insets.top); |
- insets.bottom - insets.top); |
251 |
Component[] children = parent.getComponents(); |
Component[] children = AWTUtilities.getVisibleChildren(parent); |
252 |
boolean[] laidOut = new boolean[children.length]; |
boolean[] laidOut = new boolean[children.length]; |
253 |
for (int index = 0; index < laidOut.length; index++) |
for (int index = 0; index < laidOut.length; index++) |
254 |
laidOut[index] = false; |
laidOut[index] = false; |
467 |
int x = insets.left + insets.right; |
int x = insets.left + insets.right; |
468 |
int y = insets.top + insets.bottom; |
int y = insets.top + insets.bottom; |
469 |
|
|
470 |
Component[] children = parent.getComponents(); |
Component[] children = AWTUtilities.getVisibleChildren(parent); |
471 |
|
|
472 |
if (isHorizontalIn(parent)) |
if (isHorizontalIn(parent)) |
473 |
{ |
{ |