/** * Reset the image rollover icon as enabled/disabled. * * @param enabled, the status to draw the image rollover icon for. */ public void updateImageRollover(boolean enabled) { if (enabled) { pbImageRollover.setIcon(UIImages.get(IMAGE_ROLLOVER_ICON)); } else { pbImageRollover.setIcon(UIImages.get(IMAGE_ROLLOVEROFF_ICON)); } }
/** Update the look and feel of the toolbar. */ public void updateLAF() { if (pbOpen != null) { pbOpen.setIcon(UIImages.get(OPEN_ICON)); } if (pbClose != null) { pbClose.setIcon(UIImages.get(CLOSE_ICON)); } pbCut.setIcon(UIImages.get(CUT_ICON)); pbCopy.setIcon(UIImages.get(COPY_ICON)); pbPaste.setIcon(UIImages.get(PASTE_ICON)); pbDelete.setIcon(UIImages.get(DELETE_ICON)); pbUndo.setIcon(UIImages.get(UNDO_ICON)); pbRedo.setIcon(UIImages.get(REDO_ICON)); pbShowBackHistory.setIcon(UIImages.get(PREVIOUS_ICON)); pbBack.setIcon(UIImages.get(BACK_ICON)); pbForward.setIcon(UIImages.get(FORWARD_ICON)); pbShowForwardHistory.setIcon(UIImages.get(NEXT_ICON)); pbSearch.setIcon(UIImages.get(SEARCH_ICON)); pbHelp.setIcon(UIImages.get(HELP_ICON)); if (FormatProperties.imageRollover) { pbImageRollover.setIcon(UIImages.get(IMAGE_ROLLOVER_ICON)); } else { pbImageRollover.setIcon(UIImages.get(IMAGE_ROLLOVEROFF_ICON)); } if (tbrToolBar != null) SwingUtilities.updateComponentTreeUI(tbrToolBar); }