Rectangle (final Property property, final int x, final int y) { final JTabbedPane tabbedPane = getTabbedPane(); final TabbedPaneUI ui = tabbedPane.getUI(); LOG.assertTrue(ui != null); final int index = ui.tabForCoordinate(tabbedPane, x, y); LOG.assertTrue(index != -1); return ui.getTabBounds(tabbedPane, index); }