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 › frame.setUndecorated not working for 1.0.1
Page Index Toggle Pages: 1
frame.setUndecorated not working for 1.0.1 (Read 451 times)
frame.setUndecorated not working for 1.0.1
Dec 30th, 2008, 11:22pm
 
Code:

void setup()
{
size(200,200);
frame.setUndecorated(true);
}

gives me an IllegalComponentStateException

then, when i try this code
Code:

void setup()
{
size(200,200);
try{
frame.setUndecorated(true);
}catch(IllegalComponentStateException e){
println(e.getMessage());
}
}


it outputs; The frame is displayable.
and displays the frame.


anybody?
Re: frame.setUndecorated not working for 1.0.1
Reply #1 - Dec 30th, 2008, 11:24pm
 
nevermind

this works
Code:

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