This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import org.openide.util.WeakListener;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import javax.swing.text.Document;
/** Visual Java Bean for editing of properties. It takes the model
}
private class PropertyTextField extends JTextField {
//XXX workaround jdkbug #4670767 of jdk1.4
// JTextField filters the new lines if the property filterNewlines is TRUE
// which is TRUE as default
// there is a problem when in PropertyTextFiled is set a multi-line string
// then single-line string is get back, see issue 22450
public void setDocument(Document doc) {
super.setDocument(doc);
if (doc != null) {
doc.putProperty("filterNewlines", null);
public javax.accessibility.AccessibleContext getAccessibleContext() {
if (accessibleContext == null) {