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.
LVL 3
amd2002aAsked:
Who is Participating?
 
GranModCommented:
Closed, 100 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0
 
hoomanvCommented:
do you want to know how to maimize a Swing app ?
may be helpful
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21818885.html
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I think you can set the initial size of the JFace window to Toolkit.getDefaultToolkit ().getScreenSize ().width, Toolkit.getDefaultToolkit ().getScreenSize ().height
0
 
amd2002aAuthor Commented:
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).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.