@Override public void setDisabledSelectedIcon(Icon icon) { //TODO use 'disabled' arrow icon Icon arrow = updateIcons( icon, ICON_DISABLED_SELECTED ); super.setDisabledSelectedIcon( hasPopupMenu() ? arrow : icon ); }
@Override public void setDisabledSelectedIcon(Icon icon) { //TODO use 'disabled' arrow icon Icon arrow = updateIcons(icon, ICON_DISABLED_SELECTED); super.setDisabledSelectedIcon(hasPopupMenu() ? arrow : icon); }
jButtonSaveProfile.setToolTipText("Save profile"); jButtonSaveProfile.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Save disabled.png"))); // NOI18N jButtonSaveProfile.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Save disabled.png"))); // NOI18N jButtonSaveProfile.setFocusable(false); jButtonSaveProfile.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddFile.setToolTipText("Add files or folders to profile"); jButtonAddFile.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Add disabled.png"))); // NOI18N jButtonAddFile.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Add disabled.png"))); // NOI18N jButtonAddFile.setFocusable(false); jButtonAddFile.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonRemoveFilesAndFolder.setToolTipText("Remove files/folders from profile"); jButtonRemoveFilesAndFolder.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Remove disabled.png"))); // NOI18N jButtonRemoveFilesAndFolder.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Remove disabled.png"))); // NOI18N jButtonRemoveFilesAndFolder.setFocusable(false); jButtonRemoveFilesAndFolder.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonStart.setToolTipText("Run identification"); jButtonStart.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Play disabled.png"))); // NOI18N jButtonStart.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Play disabled.png"))); // NOI18N jButtonStart.setFocusable(false); jButtonStart.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonStop.setToolTipText("Pause identification"); jButtonStop.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Pause disabled.png"))); // NOI18N jButtonStop.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Pause disabled.png"))); // NOI18N jButtonStop.setFocusable(false); jButtonStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButtonSaveProfile.setToolTipText("Save profile"); jButtonSaveProfile.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Save disabled.png"))); // NOI18N jButtonSaveProfile.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Save disabled.png"))); // NOI18N jButtonSaveProfile.setFocusable(false); jButtonSaveProfile.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonAddFile.setToolTipText("Add files or folders to profile"); jButtonAddFile.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Add disabled.png"))); // NOI18N jButtonAddFile.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Add disabled.png"))); // NOI18N jButtonAddFile.setFocusable(false); jButtonAddFile.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonRemoveFilesAndFolder.setToolTipText("Remove files/folders from profile"); jButtonRemoveFilesAndFolder.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Remove disabled.png"))); // NOI18N jButtonRemoveFilesAndFolder.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Remove disabled.png"))); // NOI18N jButtonRemoveFilesAndFolder.setFocusable(false); jButtonRemoveFilesAndFolder.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonStart.setToolTipText("Run identification"); jButtonStart.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Play disabled.png"))); // NOI18N jButtonStart.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Play disabled.png"))); // NOI18N jButtonStart.setFocusable(false); jButtonStart.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButtonStop.setToolTipText("Pause identification"); jButtonStop.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Pause disabled.png"))); // NOI18N jButtonStop.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/uk/gov/nationalarchives/droid/OldIcons/Pause disabled.png"))); // NOI18N jButtonStop.setFocusable(false); jButtonStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);