Good time of day.

I am writing a program that needs to use two monitors at once (one is actually a projector and the other is a regular monitor).

Is it possible to use Java to activate the second monitor, set its resolution and extend the desktop to it? I looked around but found nothing so far. Alternatively is it possible to write to Windows registry using Java?

Thanks.

Igor