I have created a new custom class that extends from JPanel.
I generated a parameter named “type” and set, get methods.
When I add these custom panel to any other Panel , I want to set
type property in “Properties” window of custom JPanel.
But I could not.I think it must be a way to do this. What Am I mising?
enum SelecterType {
CONTINGENCY_LIST, CONTINGENCY, EMPTY
}
public SelecterType getType() {
return type;
}
public void setType(SelecterType type) {
this.type = type;
if(type != null && !type.equals(SelecterType.EMPTY))
populateList();
}