I am developing an application in Swing. When I have two monitors connected, the application will not display. The icon appears in the unity side bar but the window is nowhere to be seen.
I went back to basics and ran HelloWorldSwing.java from the Oracle tuorials
and the same problem exists. Then I find that if I put Monitor 1 on the left, HelloWorld appears in the top left hand corner.
How can I get HelloWorldSwing (and Swing apps in general) to display in Unity when the main monitor is on the right?
My display configuration: Monitor 1 (Laptop Screen) 1280x800 Monitor 2 ("unknown") 1440x900
Monitor 2 is on the left. I have the following in my ~/.xprofile:
xrandr --newmode "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA1 1680x1050
xrandr --newmode "1440x900" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA1 1440x900