Yes, if you have time to spare sent it to me an example code would help a lot ! Thanks very much !
GraphicsDevice[] allScreenDevices = GraphicsEnvironment. getLocalGraphicsEnvironment().getScreenDevices(); System.out.println("Found " + allScreenDevices.length + " screen devices"); numScreens = allScreenDevices.length;
if (numScreens == 1){
setScreens = 1;
graphicsDevices = new GraphicsDevice[setScreens];
for (int i = 0; i < setScreens; i++) {
graphicsDevices[i] = allScreenDevices[i];
}}
if (numScreens == 2){ JFrame frame1 = new JFrame(); int n1 = JOptionPane.showConfirmDialog(frame1, "Would you like a second screen?", "A Question", JOptionPane.YES_NO_OPTION); //System.out.println("screen answer "+n);
if (n1 == 0) {
setScreens = 2;
graphicsDevices = new
GraphicsDevice[setScreens];
for (int i = 0; i < setScreens; i++) {
graphicsDevices[i] =
allScreenDevices[i];
}
}
else if(n1 == 1){
JFrame frame2 = new JFrame();
int n2 =
JOptionPane.showConfirmDialog(frame2,
"Would you like the screen on
the right?",
"A Question",
JOptionPane.YES_NO_OPTION); if (n2 == 0){
setScreens = 1;
graphicsDevices = new
GraphicsDevice[setScreens];
//for (int i = 0; i <
setScreens; i++) {
graphicsDevices[0] =
allScreenDevices[1]; //}
}
else if (n2 == 1){
setScreens = 1;
graphicsDevices = new
GraphicsDevice[setScreens];
//for (int i = 0; i <
setScreens; i++) {
graphicsDevices[0] =
allScreenDevices[0]; //}
}
}
}=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
