The idea is to have one app displaying two diferent windows (Stages) one on each monitor, the app should know how many monitors the computer has and their resolution.
It is possible with javafx?
Showing a Stage The difference between the JavaFX Stage methods show() and showAndWait() is, that show() makes the Stage visible and the exits the show() method immediately, whereas the showAndWait() shows the Stage object and then blocks (stays inside the showAndWait() method) until the Stage is closed.
The JavaFX Stage class is the top level JavaFX container. The primary Stage is constructed by the platform. Additional Stage objects may be constructed by the application. Stage objects must be constructed and modified on the JavaFX Application Thread.
Stage. A stage (a window) contains all the objects of a JavaFX application. It is represented by Stage class of the package javafx. stage.
For the current version of JavaFX (2.2) you can use this:
Screen.getScreens()
That will give you an observable list of Screen objects.
See the Screen javadoc page here: http://docs.oracle.com/javafx/2/api/javafx/stage/Screen.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With