/** * Sets the "active" child entry to the given PaletteEntry. This entry will be shown on the * palette and will be checked in the menu. * * @param entry the entry to show on the palette. */ public void setActiveEntry(PaletteEntry entry) { PaletteEntry oldEntry = activeEntry; if (activeEntry != null && (activeEntry.equals(entry) || !getChildren().contains(entry))) return; activeEntry = entry; listeners.firePropertyChange(PROPERTY_ACTIVE_ENTRY, oldEntry, activeEntry); }