apple.awt.brushMetalLook not respected in full screen mode
Hendrik Schreiber
hs at tagtraum.com
Sun Jan 6 04:11:59 PST 2013
Hi,
just to put it on the radar:
when using apple.awt.brushMetalLook, the title bar should have the same color in full screen mode as in regular mode. Right now that's not the case - it becomes lighter, like it should when apple.awt.brushMetalLook is off.
I filed a bug report with Oracle - however - this seems to be a bug in com.apple.eawt.. Who is maintaining it and who should I file bug reports to?
Thanks guys,
-hendrik
To illustrate:
import javax.swing.*;
import java.awt.*;
public class FullScreenTitleBarBug {
public static void main(String[] args) {
final JFrame jFrame = new JFrame();
com.apple.eawt.FullScreenUtilities.setWindowCanFullScreen(jFrame, true);
jFrame.getRootPane().putClientProperty("apple.awt.brushMetalLook", true);
jFrame.getRootPane().setLayout(new BorderLayout());
final JPanel blackPanel = new JPanel();
blackPanel.setBackground(new Color(0xe1e1e1));
jFrame.getRootPane().add(blackPanel, BorderLayout.CENTER);
jFrame.setBounds(100, 100, 100, 100);
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame.setVisible(true);
}
}
More information about the macosx-port-dev
mailing list