how to maximize JFrame

Posted on 2006-04-19
Last Modified: 2012-06-21
How can I expand my JFrame so it occupies the entire display area of the monitor regardless of screen resolution?
Question by:confusednewguy
    LVL 92

    Assisted Solution

    LVL 14

    Accepted Solution

    instead of

    you can also do
    to be completely fullscreen
    LVL 1

    Expert Comment

    By using a toolkit you can get the resolution of the screen... In one line you could just write:


    This won't put you into a fullscreen-mode since you'll still have the borders around the JFrame, and you can still resize it. To get fullscreen, you use the command, as hoomanv allready said:


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    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…

    754 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

    26 Experts available now in Live!

    Get 1:1 Help Now