void () { List<RadComponent> selection = getSelection(); if (selection.size() == 1) { Rectangle bounds = selection.get(0).getBounds(myLayeredPane); if (bounds != null) { myLayeredPane.scrollRectToVisible(bounds); } } }