void (Component relativeTo, Rectangle rc, final FeedbackPainter feedbackPainter, final String tooltipText) { rc = SwingUtilities.convertRectangle(relativeTo, rc, this); myFeedbackPainterPanel.setBounds(rc); myFeedbackPainterPanel.setPainter(feedbackPainter != null ? feedbackPainter : myRectangleFeedbackPainter); Point pntMouse = myEditor.getGlassLayer().getLastMousePosition(); putToolTip(this, new Point(pntMouse.x+20, pntMouse.y+30), tooltipText); if (myFeedbackPainterPanel.getParent() != this) { add(myFeedbackPainterPanel); repaint(); } }