views:

339

answers:

3

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

Thankyou.

A: 

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.

PhiLho
+4  A: 

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.

John Meagher
+2  A: 

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.

James Van Huis
GraphicsEnvironment is for Swing also, not only AWT
OscarRyz