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 & HelpPrograms › change the location of the applet on screen
Page Index Toggle Pages: 1
change the location of the applet on screen (Read 715 times)
change the location of the applet on screen
Feb 21st, 2006, 3:04am
 
how can I change the location of the Processing applet on the screen or change it to fullscreen mode??
Thank you very much
Re: change the location of the applet on screen
Reply #1 - Feb 21st, 2006, 4:50pm
 
frame.setLocation(x,y);

for changing location

and

void resize(){
size(w,h);
frame.setSize(w,h);
}

for changing size();


check out http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html for more fun stuff to do with the applet window..
remember the parent-classes (Component) which include the setSize and setLocation

-seltar
Re: change the location of the applet on screen
Reply #2 - Feb 22nd, 2006, 12:41am
 
thank you very much seltar,
I've test the methods you told me, but frame.setLocation(x,y)
doesn´t work always(I've test it several times but I can't find why the location sometimes is internally set to the default), and frame.setSize(x,y) doesn't let to stablish the size bigger than the screen size, so there is no posibility to hide the frame (the four sides) of the window and convert it into fullscreen mode.
Re: change the location of the applet on screen
Reply #3 - Feb 22nd, 2006, 11:16am
 
I think you can do frame.setUndecorated(true); to turn off the border, but you have to do this early in setup() I think, or it won't work.
Re: change the location of the applet on screen
Reply #4 - Feb 23rd, 2006, 3:06am
 
It works!
Thank you very much JohnG
Page Index Toggle Pages: 1