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.
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.
I think you can set the initial size of the JFace window to Toolkit.getDefaultToolkit ().getScreenSize ().width, Toolkit.getDefaultToolkit ().getScreenSize ().height
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(tr ue).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
may be helpful
https://www.experts-exchange.com/questions/21818885/how-to-maximize-JFrame.html