panel.add(component);
}
public void show(Point mouseLocation) {
if(canRelocateWindow(mouseLocation)) {
Location location = Closest.location(mouseLocation);
Point point = location.determine(getSize());
setLocation(point);
gotRelocatedOnceAtLeast = true;
}
setVisible(true);
}