8182402: Tooltip for Desktop button is in English when non-English locale is set

Reviewed-by: azvegint
This commit is contained in:
Prasanta Sadhukhan 2017-06-30 11:03:44 +05:30
parent 296990a1e8
commit e8693a14fb
2 changed files with 0 additions and 8 deletions

View File

@ -281,11 +281,6 @@ public class MetalFileChooserUI extends BasicFileChooserUI {
// Home Button
File homeDir = fsv.getHomeDirectory();
String toolTipText = homeFolderToolTipText;
if (fsv.isRoot(homeDir)) {
toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
}
JButton b = new JButton(homeFolderIcon);

View File

@ -260,9 +260,6 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
// Home Button
File homeDir = fsv.getHomeDirectory();
String toolTipText = homeFolderToolTipText;
if (fsv.isRoot(homeDir)) {
toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
}
JButton b = new JButton(homeFolderIcon);
b.setToolTipText(toolTipText);