if (component instanceof JComponent) {
JComponent jcomponent = (JComponent) component;
scrollComponentIntoView(component.getParent(), component.getLocation());
Rectangle visibleRect = jcomponent.getVisibleRect();
if (!visibleRect.contains(point)) {
jcomponent.scrollRectToVisible(new Rectangle(point, visibleRect.getSize()));
}
}
} catch (Exception e) {
// Ignore - this is only beutification anyhow. - Unsimulatable bug
// reported on Help forum