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.

Bug 183215

Summary: Implement setAsText() in FontEditor
Product: platform Reporter: mbastian
Component: Property EditorsAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description mbastian 2010-03-30 17:01:59 UTC
The org.netbeans.beaninfo.editors.FontEditor class doesn't implement setAsText() method.

Way to reproduce:

//property is a java.awt.Font.class property
PropertyEditor editor = property.getPropertyEditor();
editor.setValue(font);
String val = editor.getAsText();
editor.setValue(null);
editor.setAsText(val);
Object font = editor.getValue();
//font is null