Could you please try this test on that system and see if the
  device in the title changes when you move the frame back
  and forth.

[code]
import java.awt.Frame;
import java.awt.GraphicsDevice;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class GraphicsConfigUpdateTest extends Frame {
    private GraphicsDevice currentDevice;
    public GraphicsConfigUpdateTest() {
        super("GraphicsConfigUpdateTest");
        this.addComponentListener(new ComponentAdapter() {
            public void componentMoved(ComponentEvent e) {
                GraphicsDevice gd =
                    
GraphicsConfigUpdateTest.this.getGraphicsConfiguration().getDevice();
                if (gd != currentDevice) {
                    GraphicsConfigUpdateTest.this.setTitle("Current device: "+
                                                           gd.toString());
                    currentDevice = gd;
                }
            }
        });
        setSize(500, 100);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
    }

    public static void main(String[] args) {
        GraphicsConfigUpdateTest test = new GraphicsConfigUpdateTest();
        test.setVisible(true);
    }
}
[/code]

  Thanks,
    Dmitri



[EMAIL PROTECTED] wrote:
Hi Dmitri,

I have to apologize to the vaildate() method because it is the "this.getGraphicsConfiguration" that does not always realize that the image is located on a different screen. Now, I make a printout of the device ID each time I call "this.getGraphicsConfiguration" and although the dialoge is on a different screen, the graphic configuration tells me that it is on the old screen. After some more drags from one screen to the other, it finally realises the location change. . . .
Maik

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