Page 1 of 1

How to automatically maximize Main App Screen

PostPosted: Fri Nov 05, 2010 12:44 am
by reycat67
Greetings from Philippines!

I’m new to java and I’m very much interested with JVx Framework. My question is, how will you make the Main Desktop Screen automatically maximized when first run?

Thanks.

Re: How to automatically maximize Main App Screen

PostPosted: Fri Nov 05, 2010 12:26 pm
by Support@SIB
Short answer:
Code: Select all
getLauncher().setState(UILauncher.MAXIMIZED_BOTH);

Details:

Don't set the launcher maximized in the application constructor - with JVx <= 0.8 - because the launcher packs the application after creation. The problem is solved in the repository - see Support System.


Note

It depends on the launcher (Web, Application, Applet, JNLP) if maximize is supported, because maximize is not nice if you use the applet launcher.

Re: How to automatically maximize Main App Screen

PostPosted: Tue Nov 09, 2010 1:38 am
by reycat67
Thank You.