void (FeedbackLayer feedbackLayer, ComponentDragObject dragObject) { final JSplitPane splitPane = getSplitPane(); int dividerPos = getDividerPos(); int dividerStartPos = dividerPos - splitPane.getDividerSize()/2; int dividerEndPos = dividerPos + splitPane.getDividerSize() - splitPane.getDividerSize()/2; Rectangle rc; if (splitPane.getOrientation() == JSplitPane.VERTICAL_SPLIT) { rc = myLeft ? new Rectangle(0, 0, getWidth(), dividerStartPos) : new Rectangle(0, dividerEndPos, getWidth(), getHeight() - dividerEndPos); } else { rc = myLeft ? new Rectangle(0, 0, dividerStartPos, getHeight()) : new Rectangle(dividerEndPos, 0, getWidth() - dividerEndPos, getHeight()); } feedbackLayer.putFeedback(getDelegee(), rc, getInsertFeedbackTooltip()); }