Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5958009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:28:56+00:00 2026-05-22T18:28:56+00:00

If anyone can point me in the right direction. Here is the code I

  • 0

If anyone can point me in the right direction.
Here is the code I have so far.

//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setUndecorated(true);//To remove the bars around the frame.
frame.setResizable(false);//resizability causes unsafe operations.

frame.validate();

//actually applies the fullscreen.
GaphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:28:57+00:00Added an answer on May 22, 2026 at 6:28 pm

    There are three complex example you may interested in oracle tutorials.

    Do you want to use high-performance
    graphics in the Java development
    environment? Have you always wanted to
    program a game, but your images
    wouldn’t move fast enough? Has your
    slide show program not worked properly
    because you had no control over the
    user’s display resolution? If you’ve
    been asking any of these questions,
    then the full-screen exclusive mode
    API, introduced in release 1.4, may be
    what you’re looking for.


    CapabilitiesTest demonstrates the different buffering capabilities
    available for the machine on which it
    is run.


    DisplayModeTest shows a Swing application that uses passive
    rendering. If full-screen exclusive
    mode is available, it will enter
    full-screen exclusive mode. If display
    mode changes are allowed, it allows
    you to switch between display modes.


    MultiBufferTest enters full-screen mode and uses multi-buffering through an active render loop.

    Take a look at this:
    oracle.com/tutorial/fullscreen

    and this:
    oracle.com/tutorial/fullscreen/example

    EDIT:

    Here is a sample app does what you want:

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    
    
    public class DisplayModeChanger extends JFrame {
    
        private GraphicsDevice device;
        private static JButton changeDM = new JButton("800X600 @ 32 BIT 60HZ");
        private boolean isFullScreenSupported = false;
    
        public DisplayModeChanger(final GraphicsDevice device) {
    
            this.device = device;
    
            setDefaultCloseOperation(EXIT_ON_CLOSE);
    
            changeDM.addActionListener(new ActionListener() {
    
                public void actionPerformed(ActionEvent e) {
                    DisplayMode dm = new DisplayMode(800, 600, 32, 60);
                    device.setDisplayMode(dm);
                    setSize(new Dimension(dm.getWidth(), dm.getHeight()));
                    validate();
                }
            });
    
        }
    
        public void goFullScreen() {
            isFullScreenSupported = device.isFullScreenSupported();
            setUndecorated(isFullScreenSupported);
            setResizable(!isFullScreenSupported);
            if (isFullScreenSupported) {
                device.setFullScreenWindow(this);
                validate();
            } else {
                pack();
                setVisible(true);
            }
        }
    
        public static void main(String[] args) {
            GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
            GraphicsDevice defaultScreen = env.getDefaultScreenDevice();
            DisplayModeChanger changer = new DisplayModeChanger(defaultScreen);
            changer.getContentPane().add(changeDM);
            changer.goFullScreen();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone point into the right direction here. I want to respond when my
I was wondering if anyone can point me in the right direction. I have
Can anyone point me in the right direction on this. From reading the FAQs
Can anyone point me in the right direction of some facial recognition libraries &
Can anyone point me in the right direction how to configure Visual Studio 2005
Can anyone point me in the right direction on how I would minimize ambient
Can anyone point me in the right direction on how to map a route
Can anyone give me an example (or point me in the right direction) on
Does anyone have experience detecting identical text(); and class? here is my current code
Anyone can point me to any info regarding physics of a snooker game, if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.