I've done (redone the wheel likely) a fake full screen code. I'm not going to 
spam the forum again with it. The only thing that changed is that the 
construtor now starts with the correct (hopefully) size:
...
        setExtendedState(MAXIMIZED_BOTH);
        Insets i = getToolkit().getScreenInsets(getGraphicsConfiguration());
        Rectangle max = new Rectangle(getToolkit().getScreenSize());
        max.x += i.left;
        max.y += i.top;
        max.width -= i.right;
        max.height -= i.bottom;
        setBounds(max);
...

and the awteventlistener is now:

        public void eventDispatched(AWTEvent e) {
            WindowEvent evt = (WindowEvent) e;
            if (PROCESS_WINDOW_EVENTS && evt.getID() == 
WindowEvent.WINDOW_DEACTIVATED && evt.getWindow() == JFrame.this && 
evt.getOppositeWindow() == null && JFrame.this.isFullScreen()) {
                JFrame.this.setExtendedState(JFrame.ICONIFIED);
            }
 
I haven't seen problems with on linux java 1.6 with the additional 
evt.getWindow() == JFrame.this, but i'm not sure about 1.5 anymore (don't have 
it).

There is a small problem with the order on the alt-tab on windows (it doesn't 
move to the selected aplication, but keeps on the last - i have no idea why).
[Message sent by forum member 'i30817' (i30817)]

http://forums.java.net/jive/thread.jspa?messageID=285494

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to