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.

View | Details | Raw Unified | Return to bug 22450
Collapse All | Expand All

(-)openide/src/org/openide/explorer/propertysheet/PropertyPanel.java (+13 lines)
Lines 55-60 Link Here
55
import org.openide.util.WeakListener;
55
import org.openide.util.WeakListener;
56
import java.lang.ref.Reference;
56
import java.lang.ref.Reference;
57
import java.lang.ref.WeakReference;
57
import java.lang.ref.WeakReference;
58
import javax.swing.text.Document;
58
59
59
60
60
/** Visual Java Bean for editing of properties. It takes the model
61
/** Visual Java Bean for editing of properties. It takes the model
Lines 1982-1987 Link Here
1982
    }
1983
    }
1983
1984
1984
    private class PropertyTextField extends JTextField {
1985
    private class PropertyTextField extends JTextField {
1986
        
1987
        //XXX workaround jdkbug #4670767 of jdk1.4
1988
        // JTextField filters the new lines if the property filterNewlines is TRUE
1989
        // which is TRUE as default
1990
        // there is a problem when in PropertyTextFiled is set a multi-line string
1991
        // then single-line string is get back, see issue 22450
1992
        public void setDocument(Document doc) {
1993
            super.setDocument(doc);
1994
            if (doc != null) {
1995
                doc.putProperty("filterNewlines", null);
1996
            }
1997
        }
1985
        
1998
        
1986
        public javax.accessibility.AccessibleContext getAccessibleContext() {
1999
        public javax.accessibility.AccessibleContext getAccessibleContext() {
1987
            if (accessibleContext == null) {
2000
            if (accessibleContext == null) {

Return to bug 22450