@SuppressWarnings("unchecked")
private void addFeedbackComponent(
Component contentComponent,
JComponent messageComponent,
Map keyMap, int xOffset, int yOffset) {
ValidationResult result = getAssociatedResult(messageComponent, keyMap);
JComponent feedbackComponent = createFeedbackComponent(result, contentComponent);
if (feedbackComponent == null)
return;
add(feedbackComponent, new Integer(FEEDBACK_LAYER));
Point overlayPosition = getFeedbackComponentOrigin(feedbackComponent, contentComponent);