-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
generic, x86
-
generic, windows_xp
When using setUndecorated on a frame, clicking on the maximize button causes the window to cover up the taskbar area on the screen. However, when you do not use this method, the screen only maximizes up to the top of the taskbar. Is this the intended behavior? I did not find any info on this in the api docs under setUndecorated. This maybe something worth mentioning in the docs.
Try running the code below with setUndecorated and without.
I compiled and ran the following code below with 1.5 b33 on Win 2k
------------------------------------------------------------------
import javax.swing.*;
public class JFrameTest2 {
public static void main(String[] args) {
new JFrameTest2();
}
public JFrameTest2() {
JFrame frame = new JFrame();
frame.setUndecorated(true);
frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
JDesktopPane desktop = new JDesktopPane();
frame.setContentPane(desktop);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(300,300);
frame.setVisible(true);
}
}
------------------------------------------------------------------
Try running the code below with setUndecorated and without.
I compiled and ran the following code below with 1.5 b33 on Win 2k
------------------------------------------------------------------
import javax.swing.*;
public class JFrameTest2 {
public static void main(String[] args) {
new JFrameTest2();
}
public JFrameTest2() {
JFrame frame = new JFrame();
frame.setUndecorated(true);
frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
JDesktopPane desktop = new JDesktopPane();
frame.setContentPane(desktop);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(300,300);
frame.setVisible(true);
}
}
------------------------------------------------------------------
- duplicates
-
JDK-4737788 jframe undecorated cover taskbar when maximized
- Open