apple.awt.brushMetalLook not respected in full screen mode
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Sun Jan 6 15:17:43 PST 2013
Hi, Hendrik.
Looks like this is the same issue.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8003173
Most probably this will be fixed in 7u12.
06.01.2013 16:11, Hendrik Schreiber wrote:
> 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);
> }
> }
--
Best regards, Sergey.
More information about the macosx-port-dev
mailing list