595 |
Rectangle iconRect = new Rectangle(); |
Rectangle iconRect = new Rectangle(); |
596 |
Rectangle textRect = new Rectangle(); |
Rectangle textRect = new Rectangle(); |
597 |
Insets insets = b.getInsets(); |
Insets insets = b.getInsets(); |
|
Insets margin = b.getMargin(); |
|
598 |
|
|
599 |
viewRect = new Rectangle(); |
viewRect = new Rectangle(); |
600 |
|
|
627 |
|
|
628 |
contentRect = textRect.union(iconRect); |
contentRect = textRect.union(iconRect); |
629 |
|
|
630 |
return new Dimension(insets.left + margin.left |
return new Dimension(insets.left |
631 |
+ contentRect.width |
+ contentRect.width |
632 |
+ insets.right + margin.right, |
+ insets.right, |
633 |
insets.top + margin.top |
insets.top |
634 |
+ contentRect.height |
+ contentRect.height |
635 |
+ insets.bottom + margin.bottom); |
+ insets.bottom); |
636 |
} |
} |
637 |
} |
} |