Details
-
Bug
-
Resolution: Fixed
-
P4
-
8u72, 9
-
Java 8u74
Windows 7, 8.1, 10
HiDPI Display
-
generic
-
windows_7, windows_8, windows_10
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8156387 | 8u111 | Alexandr Scherbatiy | P4 | Resolved | Fixed | b01 |
JDK-8153960 | 8u102 | Alexandr Scherbatiy | P4 | Resolved | Fixed | b03 |
JDK-8162223 | emb-8u111 | Alexandr Scherbatiy | P4 | Resolved | Fixed | b01 |
Description
Further, the panel on the left (Recent, Desktop, Documents, ...) is scaled in such a way that the labels aren't fully visible. See attached screenshots.
The problem occurs only with Windows Look & Feel, but with Windows 7, Windows 8.1, Windows 10 (those are the ones I tested).
Steps to reproduce: Run this code:
----------------------------------
import javax.swing.*;
import java.awt.*;
public class JFileChooserTest {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
SwingUtilities.invokeLater(() -> {
final JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(new BorderLayout());
final JButton open = new JButton("Open");
frame.add(open);
open.addActionListener(l -> {
final JFileChooser chooser = new JFileChooser();
chooser.showOpenDialog(frame);
});
frame.setBounds(200, 200, 200, 200);
frame.setVisible(true);
});
}
}
--------------------------------------
Attachments
Issue Links
- backported by
-
JDK-8153960 [hidpi] JFileChooser does not scale properly on Windows with HiDPI display and Windows L&F
- Resolved
-
JDK-8156387 [hidpi] JFileChooser does not scale properly on Windows with HiDPI display and Windows L&F
- Resolved
-
JDK-8162223 [hidpi] JFileChooser does not scale properly on Windows with HiDPI display and Windows L&F
- Resolved
- relates to
-
JDK-8157838 Personalized Windows Font Size is not taken into account in Java8u102
- Resolved
-
JDK-8076545 Text size is twice bigger under Windows L&F on Win 8.1 with HiDPI display
- Resolved
-
JDK-8143064 Icons are not properly rendered with Windows L&F on HiDPI display
- Resolved
-
JDK-8151385 [hidpi] JOptionPane-Icons only partially visible when using Windows 10 L&F
- Resolved
-
JDK-8149368 [hidpi] JLabel font is twice bigger than JTextArea font on Windows 7,HiDPI, Windows L&F
- Resolved
-
JDK-8055212 JEP 263: HiDPI Graphics on Windows and Linux
- Closed