I have two monitors. I am running an application in the second monitor and saves cordinates in a file. When I move the application to another computer that only have 1 monitor the window is not visible due to location outside the monitor.
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
gets me 1600x1200
But my windows is located lets say 1680x150 and not visible.
I could remove 1600 from the 1680 automatically. But I want to support more monitors.
There is a method
Does anyone know what property I should look for?
Or some way to ask the OS number of monitors etc.