How can I send output to an external/second display in Java?
I would like to be able to emulate the functionality of the "Presenter Tools" in MS Office. This requires the program to be able to detect and use an external/secondary monitor/projector.
Could somebody please point me in the right direction for achieving this.
I would like to use Java 1.5
Asked by: Lenny799 | Posted: 28-01-2022
Through the GraphicsEnvironment class you can get information about the available screens on the computer. In the docs for GraphicsDevice there is a basic example showing how to get and use the screen information.Answered by: Aida679 | Posted: 01-03-2022
It really depends on the GUI API you are planning.
For AWT, see John Meagher's post.
For SWT, you can look at Display.getMonitors() for a starting point.Answered by: Lyndon266 | Posted: 01-03-2022
I don't know, as I have only one screen... But I know the Most Pixels Ever library: it is a Java library for Processing, but I suppose it uses standard Java stuff to do that, the Processing part being only for easy interface.Answered by: Roman293 | Posted: 01-03-2022
Still can't find your answer? Check out these amazing Java communities for help...
Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)