JButton b = null;
ImageIcon ai = ja.getIcon();
if (ai != null) {
if (a instanceof NewActionBase && comp instanceof ChoiceButtonListener) {
b = new JaWETypeChoiceButton(JaWEType.class,
((NewActionBase) a).getXPDLTypeClass(),
(ChoiceButtonListener) comp,
ai);
} else if (comp instanceof NewStandardXPDLElementEditor) {
// CUSTOM
b = new JButton(label, ai) {
public float getAlignmentY() {
return 0.5f;
}
};
// END CUSTOM
} else {
b = new JButton(ai) {
public float getAlignmentY() {
return 0.5f;
}
};
}
} else {
if (a instanceof NewActionBase && comp instanceof ChoiceButtonListener) {
b = new JaWETypeChoiceButton(JaWEType.class,
((NewActionBase) a).getXPDLTypeClass(),
(ChoiceButtonListener) comp,
ai);
} else {
b = new JButton(label) {