Strange. Can be also mathlab problem. Could you try to compile and run 
following:
[code]
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;

import javax.swing.JWindow;
import javax.swing.JLabel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class FullScreen {
    public static void main (String[] args) {
        // there's a bug that is supposed to be fixed in 1.6 ... no 2nd screen 
fullscreen before than ... oh well
        GraphicsEnvironment ge = 
GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice[] gs = ge.getScreenDevices();
        Click click = new FullScreen().new Click();
        for (int j = 0; j < gs.length; j++) {
            if (args.length > 0 ) {
                if (args[0].equals("0") && j != 0) {
                    continue;
                }
                if (args[0].equals("1") && j != 1) {
                    continue;
                }
            }
            GraphicsDevice gd = gs[j];
            JWindow window = new JWindow(gd.getConfigurations()[0]);
            window.addMouseListener(click);
            window.setLayout(new GridLayout());
            window.add(new JLabel("Screen:" + j, JLabel.CENTER));
            System.out.println(j + " supports full screen: " + 
gd.isFullScreenSupported());
            gd.setFullScreenWindow(window);
        }
    }

    class Click extends MouseAdapter {
        @Override
        public void mouseClicked(MouseEvent e) {
            System.exit(0);
        }

    }
}[/code]

You should see the grey screen and text "Screen X" in the middle of the screen 
giving you the number of the device. If the problem persists you will see the 
grey rect and label only on one of the screens. If it works, both of your 
screens will be grey. To close it just click the mouse. If the pure java 
(above) works then the problem is likely related to mathlab (maybe references 
old JVM somewhere???),  if not then posting your exact configuration (JVM 
version, OS version) would help.

Cheers
[Message sent by forum member 'rah003' (rah003)]

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

===========================================================================
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