How to automatically maximize Main App Screen

General questions regarding the development with JVx.

How to automatically maximize Main App Screen

Postby reycat67 » Fri Nov 05, 2010 12:44 am

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.
reycat67
 
Posts: 4
Joined: Fri Nov 05, 2010 12:33 am

Re: How to automatically maximize Main App Screen

Postby Support@SIB » Fri Nov 05, 2010 12:26 pm

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.
User avatar
Support@SIB
 
Posts: 201
Joined: Mon Sep 28, 2009 1:56 pm

Re: How to automatically maximize Main App Screen

Postby reycat67 » Tue Nov 09, 2010 1:38 am

Thank You.
reycat67
 
Posts: 4
Joined: Fri Nov 05, 2010 12:33 am


Return to Development