Swing application won't display in unity when second monitor is on the left <p>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.</p> <p>I went back to basics and ran HelloWorldSwing.java from the Oracle tuorials</p> <p><a href="http://docs.oracle.com/javase/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java" rel="nofollow">http://docs.oracle.com/javase/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java</a></p> <p>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.</p> <p>How can I get HelloWorldSwing (and Swing apps in general) to display in Unity when the main monitor is on the right?</p> <p>My display configuration: Monitor 1 (Laptop Screen) 1280x800 Monitor 2 ("unknown") 1440x900</p> <p>Monitor 2 is on the left. I have the following in my ~/.xprofile:</p> <pre><code>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 </code></pre>