We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › problem with frame.setLocation()
Page Index Toggle Pages: 1
problem with frame.setLocation() (Read 753 times)
problem with frame.setLocation()
Mar 14th, 2007, 9:26pm
 
Hi all,

I have a sketch in which frame.setLocation() is used to set the location of the applet window on a second display (projector). The app was running just fine on an Apple G5 running OS X 10.3.9, but since the OS got upgraded to 10.4.8 (and later to 10.4.9) the applet window opens up on the primary display.

frame.setLocation() doesn't seem to have any effect at all.

Any help would be greatly appreciated!

-daniel
Re: problem with frame.setLocation()
Reply #1 - Mar 19th, 2007, 6:19pm
 
Not sure what I'm doing wrong. I've tried the following test sketch on several machines (both Intel and PPC based) running OS X 10.4.8, J2SE 5.0. I can't get the applet window to reposition at all.

import javax.imageio.*;

void setup() {
frame.setUndecorated(true);
size(200, 200);
frame.setLocation(400, 400);
}
Page Index Toggle Pages: 1