Print
 org.netbeans.editor.addChangeListener(myListener);

Source: NetBeans FAQ

Parent Category: Other API Tips