-
Bug
-
Resolution: Duplicate
-
P3
-
9
-
os_x
Reproducible on Yosemite. When the window is in native full screen mode, disposing it leaves the user with a black screen. To reproduce use the following app:
SwingUtilities.invokeLater(() -> {
JFrame f = new JFrame(" TEST ");
new JFrame().setVisible(true);
f.setLayout(new FlowLayout());
JButton button = new JButton(" Button ");
f.add(button);
f.setBounds(100, 100, 100, 100);
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
f.setVisible(true);
FullScreenUtilities.setWindowCanFullScreen(f, true);
});
SwingUtilities.invokeLater(() -> {
JFrame f = new JFrame(" TEST ");
new JFrame().setVisible(true);
f.setLayout(new FlowLayout());
JButton button = new JButton(" Button ");
f.add(button);
f.setBounds(100, 100, 100, 100);
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
f.setVisible(true);
FullScreenUtilities.setWindowCanFullScreen(f, true);
});
- duplicates
-
JDK-8041734 JFrame in full screen mode leaves empty workspace after close
- Resolved