Avoid the deletion of a element in a JEditorPane by backspace-button?

Hi,

I'm developing a Editor (JEditorPane) with BulletList functionality. Therefore I craeted a BulletListElment-class, a BulletListItemElment-class and suitable views (superclass is BoxView). Generally the bulleted list is working rudimentary but I don't know how to avoid that item-elements resp. the whole bulleted list can be deleted by pushing the backspace-button.

My goal is, that items and the list can only be deleted by using a menu / buttons.

How can I realize this behavior?

Regards, Stefan

[534 byte] By [Stefan_Knobela] at [2007-10-3 2:50:21]
# 1
Hi, now I know the answer! I have to overwrite the remove(...)-method of my document.Thanks to StanislavL (by eMail).Regards, Stefan
Stefan_Knobela at 2007-7-14 20:39:11 > top of Java-index,Desktop,Core GUI APIs...