* add tooltips for image buttons

This commit is contained in:
Reinhard Pointner 2014-09-28 19:13:35 +00:00
parent d2d80376fe
commit 8fc4c3f304
5 changed files with 5 additions and 5 deletions

View File

@ -270,7 +270,7 @@ class BindingDialog extends JDialog {
} }
}; };
protected final Action mediaInfoAction = new AbstractAction("Info", ResourceManager.getIcon("action.properties")) { protected final Action mediaInfoAction = new AbstractAction("Open MediaInfo", ResourceManager.getIcon("action.properties")) {
private Map<StreamKind, List<Map<String, String>>> getMediaInfo(File file) { private Map<StreamKind, List<Map<String, String>>> getMediaInfo(File file) {
try { try {

View File

@ -39,7 +39,6 @@ class MatchAction extends AbstractAction {
public void setMatchMode(boolean strict) { public void setMatchMode(boolean strict) {
putValue(NAME, "Match"); putValue(NAME, "Match");
putValue(SHORT_DESCRIPTION, "Match files and names");
putValue(SMALL_ICON, ResourceManager.getIcon(strict ? "action.match.strict" : "action.match")); putValue(SMALL_ICON, ResourceManager.getIcon(strict ? "action.match.strict" : "action.match"));
} }

View File

@ -160,7 +160,7 @@ public class RenamePanel extends JComponent {
new ScrollPaneSynchronizer(namesList, filesList); new ScrollPaneSynchronizer(namesList, filesList);
// delete items from both lists // delete items from both lists
Action removeAction = new AbstractAction("Remove", ResourceManager.getIcon("dialog.cancel")) { Action removeAction = new AbstractAction("Exclude Selected Items", ResourceManager.getIcon("dialog.cancel")) {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -546,7 +546,7 @@ public class RenamePanel extends JComponent {
} }
} }
protected final Action clearFilesAction = new AbstractAction("Clear", ResourceManager.getIcon("action.clear")) { protected final Action clearFilesAction = new AbstractAction("Clear All", ResourceManager.getIcon("action.clear")) {
@Override @Override
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {

View File

@ -246,7 +246,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
} }
protected final Action setUserAction = new AbstractAction("Set User", ResourceManager.getIcon("action.user")) { protected final Action setUserAction = new AbstractAction("Login", ResourceManager.getIcon("action.user")) {
@Override @Override
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {

View File

@ -87,6 +87,7 @@ public final class SwingUI {
public static JButton createImageButton(Action action) { public static JButton createImageButton(Action action) {
JButton button = new JButton(action); JButton button = new JButton(action);
button.setHideActionText(true); button.setHideActionText(true);
button.setToolTipText(String.valueOf(action.getValue(Action.NAME)));
button.setOpaque(false); button.setOpaque(false);
return button; return button;