Maximize JFace ApplicationWindow

Posted on 2006-05-04
Last Modified: 2013-12-15
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.

Question by:amd2002a
    LVL 14

    Expert Comment

    do you want to know how to maimize a Swing app ?
    may be helpful
    LVL 30

    Expert Comment

    I think you can set the initial size of the JFace window to Toolkit.getDefaultToolkit ().getScreenSize ().width, Toolkit.getDefaultToolkit ().getScreenSize ().height
    LVL 3

    Author Comment

    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).

    Accepted Solution

    Closed, 100 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now