static void addCommentToWindow(Component c, S comment) { if (getFrame(c) == null) { print("No window to add comment: " + quote(comment)); ret; } addToWindow(c, new JLabel(comment)); }