Hi Pavel,<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">In common case you shouldn't remove listeners of course. But in your
case you must remove listeners because of editor is shared between
all JTextComponents (see javadoc of the JTextComponent#getActions
method and BasicTextUI#getEditorKit implementation). So you added
listeners not to a JTextComponent instance, but to the shared
editor.</blockquote><br>Thanks a lot for clarification, I wasn't sure this behaviour is intended :/<br>Seems I have to adopt the jfc-demo Notepad to not leak memory when running on caciocavallo-web ;)<br><br>Thanks, Clemens<br>