I'm having troubles running java awt/swing applications in Terminal Server when more than one screen is involved.
Usually java has a GraphicsDevice for every physical screen and one additional GraphicsDevice where all screens are combined.
So it's not a big deal, the application is running on GraphicsDevice and all window sizes and dialog locations are calculated correctly.
The terminal server however offers only one GraphicsDevice where all screens are combined. So for java it looks like I'm working with one giant screen.
Therefore every dialog is placed in the center of the virtualized screen, which is right between my two physical screens, or on the middle screen when working with three screens.
Is there a way I can restrict the available resolution for my java application?
Another solution would be to handle the size and location locally for every Frame and Dialog, but thats not really a handy option.