S
superchumbo
Hello,
I'm trying to learn how to create custom property editors for own javabeans.
I'm using sun's tutorial from webpage
http://java.sun.com/developer/onlineTraining/Beans/Beans4/nervous07.html
Everything is going well, i'm able to add this bean as new component
toNetBeans
by Palette Manager, i'm able to add this new component to jFrame,
but when I'm trying to change "text" property in properties editor,
NetBeans adds in initComponents() line:
nervousText071.setText(???);
Does anybody know what is the reason of malfunction? Is it my fault?
this is the property editor class:
package sun.beanbox.beans;
import java.beans.*;
public class NervousText07TextPropertyEditor
extends PropertyEditorSupport {
public String[] getTags() {
String values[] = {
"Nervous Text",
"Anxious Text",
"Funny Text",
"Wobbly Text"};
return values;
}
}
The rest of sources is on that webpage.
Many thanks in advance,
superchumbo
I'm trying to learn how to create custom property editors for own javabeans.
I'm using sun's tutorial from webpage
http://java.sun.com/developer/onlineTraining/Beans/Beans4/nervous07.html
Everything is going well, i'm able to add this bean as new component
toNetBeans
by Palette Manager, i'm able to add this new component to jFrame,
but when I'm trying to change "text" property in properties editor,
NetBeans adds in initComponents() line:
nervousText071.setText(???);
Does anybody know what is the reason of malfunction? Is it my fault?
this is the property editor class:
package sun.beanbox.beans;
import java.beans.*;
public class NervousText07TextPropertyEditor
extends PropertyEditorSupport {
public String[] getTags() {
String values[] = {
"Nervous Text",
"Anxious Text",
"Funny Text",
"Wobbly Text"};
return values;
}
}
The rest of sources is on that webpage.
Many thanks in advance,
superchumbo