@Override public void productAdded(ProductManager.Event event) { fireProductAdded(event.getProduct()); TreePath treePath = getModel().getTreePath(event.getProduct()); expandPath(treePath); Rectangle bounds = getPathBounds(treePath); if (bounds != null) { bounds.setRect(0, bounds.y, bounds.width, bounds.height); scrollRectToVisible(bounds); } }