});
//Listen to apply button to add recent palettes
RankingController rankingController = Lookup.getDefault().lookup(RankingController.class);
RankingModel rankingModel = rankingController.getModel();
rankingModel.addRankingListener(new RankingListener() {
public void rankingChanged(RankingEvent event) {
if (event.is(RankingEvent.EventType.APPLY_TRANSFORMER)) {
if (transformer == event.getTransformer()) {
addRecentPalette();