Posted by: Gajedi August 13, 2006
Login in to Rate this Post:
0
?
imports com.jgoodies.bindings.beans.model;
public class NerdToCoolBean implements Model {
public static final String PROPERTYNAME_NERD = "nerd";
public static final String PROPERTYNAME_COOL = "cool";
//members
private String nerd;
private String cool;
//constructor
public NerdToCoolBean() {
nerd = "";
cool = "";
}
public String getNerd() {
return nerd;
}
public void setNerd(String nerd) {
String oldNerd = getNerd();
this.nerd = nerd
firePropertyChange(PROPERTYNAME_NERD, oldNerd, this.nerd);
}
public String getCool() {
return cool;
}
public void setCool(String cool) {
String oldCool = getCool();
this.cool = cool
firePropertyChange(PROPERTYNAME_COOL, oldCool, this.cool);
}
}
SWING CLASSES AND XML, SCHEMA, STYLESHEETS in next postings.
WAIT FOR MORE POSTINGS ON HOW TO CHANGE NERD TO COOL.