views:

224

answers:

1

I am writing an application in Java using SWT. On our Solaris machines, we have multiple monitor setups, but they are treated in isolation by the operating system. This means I can't open the application and drag it to another monitor. The right-click context menu doesn't even allow me to change the monitor the application is displayed on.

What I want to do is provide a way for the user to "send" all or part of my SWT shell to another monitor. How can I do this?

Additional Information A call to Display.getMonitors() returns Monitor[] but the length is 1 (when it should be 2 or 3 or ... N monitors.)

+1  A: 

What eclipse version are you using?

According to bug 209039, "this" (i.e. "Display.getMonitors() returning only one monitor") is fixed since 3.4M4 for SWT on Solaris.

As mentioned by Thorbjørn Ravn Andersen in the comments, eclipse3.4.2 is available on OpenSolaris.

VonC
Eclipse 3.4.2 is available from the package repository in OpenSolaris. I believe both the SPARC and x86 version are also regularily built by the Eclipse compile farm.
Thorbjørn Ravn Andersen
Thanks to the both of you, this was good information. We're apparently running a slightly older version of SWT and since we're running out of time before the next build release, we'll have to push the upgrade to a later time. Hopefully then I'll be able to make this multimonitor stuff work!
ARF