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

  • Home
  • SEARCH
  • 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 9146939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:52:03+00:00 2026-06-17T10:52:03+00:00

I have an application that contains two stages which should be shown on two

  • 0

I have an application that contains two stages which should be shown on two different screens both in fullscreen mode. I managed to position the two stages on seperate screens, and tried to set the fullscreen property to true on each Stage, but only of them is shown without decoration. It is always the one that has the fullscreen property set last that is shown in fullscreen mode.

Is it not possible in JavaFX 2.2 to have multiple stages in fullscreen mode at the same time?

  • 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-06-17T10:52:04+00:00Added an answer on June 17, 2026 at 10:52 am

    I also ran into this problem and I found an easy solution(workaround):

    First we need the id of the primary monitor:

    int primaryMon;
    Screen primary = Screen.getPrimary();
    for(int i = 0; i < Screen.getScreens().size(); i++){
        if(Screen.getScreens().get(i).equals(primary)){
            primaryMon = i;
            System.out.println("primary: " + i);
            break;
        }
    }
    

    After this we init and show the primary stage. It is important to do this on the primary monitor (for hiding taskbars and such things).

    Screen screen2 = Screen.getScreens().get(primaryMon);
    Stage stage2 = new Stage();
    stage2.setScene(new Scene(new Label("primary")));
    //we need to set the window position to the primary monitor:
    stage2.setX(screen2.getVisualBounds().getMinX());
    stage2.setY(screen2.getVisualBounds().getMinY());
    stage2.setFullScreen(true);
    stage2.show();
    

    Now the workaround part. We create the stages for the other monitors:

    Label label = new Label("monitor " + i);
    stage.setScene(new Scene(label));
    System.out.println(Screen.getScreens().size());
    Screen screen = Screen.getScreens().get(i); //i is the monitor id
    
    //set the position to one of the "slave"-monitors:
    stage.setX(screen.getVisualBounds().getMinX());
    stage.setY(screen.getVisualBounds().getMinY());
    
    //set the dimesions to the screen size:
    stage.setWidth(screen.getVisualBounds().getWidth());
    stage.setHeight(screen.getVisualBounds().getHeight());
    
    //show the stage without decorations (titlebar and window borders):
    stage.initStyle(StageStyle.UNDECORATED);
    stage.show();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which has a tabcontrol that contains two tabpages. I have
I have an application that contains two Activities with <intent-filter> <action android:name=android.intent.action.MAIN/> <category android:name=android.intent.category.LAUNCHER/>
I have an application that generates a lengthy Xml output file which contains many
I have a div which contains two nested divs, one that specifies a height
I have a Recipe entity that contains two images: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public
I have an Android application that contains two Activities . Activity A has a
I currently have a single solution that contains both the one application developed so
I have a tabbed application that contains five splitviewcontrollers. In portrait mode, the 'master'
I am building a Rails application that contains Developer s who have Application s.
I have an application that contains many controls on a panel, each with its

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.