mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-12 13:35:06 +00:00
8182402: Tooltip for Desktop button is in English when non-English locale is set
Reviewed-by: azvegint
This commit is contained in:
parent
296990a1e8
commit
e8693a14fb
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user