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 & HelpIntegration › window sizing trouble in eclipse
Page Index Toggle Pages: 1
window sizing trouble in eclipse (Read 910 times)
window sizing trouble in eclipse
Jun 21st, 2005, 8:27pm
 
having some window sizing weirdness when running code as an applet in eclipse.

if the parameter to size is 'P3D', the window sizes correctly.  any other parameter causes the window to default to 100x100.

this would just be a nuisance instead of a problem, except that i'm using marumushi's hack ( http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1114400513 ) to get opengl working, and this means i use *no* parameter to the size call, which in turn means the applet window opens at 100x100.

this was causing me even more trouble, because i was calling background() on the first frame only to refresh the video buffer ( http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1118784331 ), which doesn't get at all the pixels if the window is too small.  i got around it (for the time being) by manually triggering a background() call after i resize the window.

oh, and for the record, i have the width and height set correctly in my run...>parameters, but these numbers seem to be overridden by params to size() regardless.

so.  question is, is there a way to get around this?  perhaps a call to set the applet's size directly?  (i'm awful ignorant about for-real-java....)

eclipse is great ( Cheesy ), but eclipse is hard ( :/ )
Page Index Toggle Pages: 1