Even though I'm configuring them the same way, they come up looking different (functionality is fine). My code is here:
- Code: Select all
jRemoveSortButton.setText("Remove Sort");
jRemoveSortButton.setButtonStyle(JideButton.TOOLBOX_STYLE);
jRemoveSortButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
removeSort();
}
});
jAddSortButton.setText("Add Sort...");
jAddSortButton.setAlwaysDropdown(true);
jAddSortButton.setButtonStyle(JideSplitButton.TOOLBOX_STYLE);
for (String field : FIELDS) {
jAddSortButton.add(new AbstractAction(field) {
public void actionPerformed(ActionEvent evt) {
addSort(evt);
}
});
}
and they come out looking like this:
Any suggestions appreciated. Thanks!