void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { final String tooltipText = UIDesignerBundle.message("insert.feedback.add.tab", getDisplayName(), myInsertIndex); if (myInsertIndex < getTabbedPane().getTabCount()) { feedbackLayer.putFeedback(getDelegee(), myFeedbackRect, VertInsertFeedbackPainter.INSTANCE, tooltipText); } else { Rectangle rcFeedback; final JTabbedPane tabbedPane = getTabbedPane(); final TabbedPaneUI ui = tabbedPane.getUI(); if (tabbedPane.getTabCount() > 0) { Rectangle rc = ui.getTabBounds(tabbedPane, tabbedPane.getTabCount()-1); rcFeedback = new Rectangle(rc.x+rc.width, rc.y, 50, rc.height); } else { // approximate rcFeedback = new Rectangle(0, 0, 50, tabbedPane.getFontMetrics(tabbedPane.getFont()).getHeight() + 8); } feedbackLayer.putFeedback(getDelegee(), rcFeedback, tooltipText); } }