Link to home
Start Free TrialLog in
Avatar of amd2002a
amd2002a

asked on

Maximize JFace ApplicationWindow

Hi Guys,

I know this might be easy but I haven't been able to find it anywhere. How do you maximize a JFace ApplicationWindow? I'm creating an ApplicationWindow and I want it to be maximized when I make it visible.

Thanks.
Avatar of hoomanv
hoomanv
Flag of Canada image

do you want to know how to maimize a Swing app ?
may be helpful
https://www.experts-exchange.com/questions/21818885/how-to-maximize-JFrame.html
I think you can set the initial size of the JFace window to Toolkit.getDefaultToolkit ().getScreenSize ().width, Toolkit.getDefaultToolkit ().getScreenSize ().height
Avatar of amd2002a
amd2002a

ASKER

I figured this one out on my own. You have to create an SWT shell and pass that into the constructor of your JFace ApplicationWindow. Then, on your JFace window, call getShell().setMaximized(true).
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial