Rectangle () { int index = myList.getSelectedIndex(); if (index < 0) { LOG.error("No selected element, size=" + getListModel().getSize() + "; items" + getItems()); } Rectangle itemBounds = myList.getCellBounds(index, index); if (itemBounds == null){ LOG.error("No bounds for " + index + "; size=" + getListModel().getSize()); return null; } return SwingUtilities.convertRectangle(myList, itemBounds, getComponent()); }