564 |
Dimension screenSize = getToolkit().getScreenSize(); |
Dimension screenSize = getToolkit().getScreenSize(); |
565 |
|
|
566 |
boolean fit = true; |
boolean fit = true; |
567 |
Dimension size; |
Dimension size = this.getPreferredSize(); |
|
|
|
|
// Determine the size of the popup menu |
|
|
if (this.getSize().width == 0 && this.getSize().width == 0) |
|
|
size = this.getPreferredSize(); |
|
|
else |
|
|
size = this.getSize(); |
|
568 |
|
|
569 |
if ((size.width > (rootContainer.getWidth() - popupLocation.x)) |
if ((size.width > (rootContainer.getWidth() - popupLocation.x)) |
570 |
|| (size.height > (rootContainer.getHeight() - popupLocation.y))) |
|| (size.height > (rootContainer.getHeight() - popupLocation.y))) |