title: WindowBuilder Pro – Incorrect display of content pane and element frames in the design view
body: <p>I need some help with following problem:</p>
  
  <p><strong>Problem:</strong> </p>
  
  <p>In the design view frames that appear around selected Swing-elements are not displayed at their correct positions. Also the content pane is not located at its right position inside the window (JFrame). It seems no matter whether layout is used (e. a. BorderLayout, GroupLayout).</p>
  
  <p>For example, the frame of a selected button is display many pixels above or beside the button. In this case, if you want to select a GUI component by clicking it with your courser you should not click on the graphical representation of that element but some pixels above or where ever the frame could be – you have to consider the offset of the shifting.
  By nearly every refresh of the design view (F5) or if you shift some components in the content pane the offset of the wrong placed frames changes for some pixels – sometimes the frames are above, sometimes below or beside.</p>
  
  <p><em>Are there other persons with this problem?</em></p>
  
  <p><em>Are there persons that don‘t have these problems with WindowBuilder Pro with Ubuntu 12.04?</em></p>
  
  <p><em>What could cause this error and how it might be solved?</em></p>
  
  <p><strong>System environment under which the error occurs:</strong></p>
  
  <ul>
  <li>One desktop PC / One laptop</li>
  <li>Ubuntu 12.04 (with Unity) / Kubuntu 12.04 (with KDE)</li>
  <li>Oracle Java 7</li>
  <li>Eclipse 64 Bit: 
  
  <ul>
  <li>Eclipse 4.3 Java EE / Eclipse 4.3 Standard / Eclipse 4.3 Modeling Tools </li>
  <li>Installed under „/opt/eclipse“. The error occurs, no matter whether the folders belong to root or to normal user.</li>
  </ul></li>
  <li>WindowBuilder Pro 1.6.0 (Eclipse plugin installed with eclipse software manager)</li>
  <li>I also tried WindowBuilder Pro in Ubuntu 13.04 in VirtualBox. But as soon I am moving the mouse on the palette eclipse crashes.</li>
  </ul>
  
  <p><strong>Hints:</strong></p>
  
  <ul>
  <li><p>The error seems to occur only, if the content pane is not correctly positioned inside the window (JFrame). Sometimes the content pane is out of place by a few dozen pixels, sometimes it is as wide as the JFrame itself, sometimes it is little bigger than the window.</p></li>
  <li><p>The error does not occur with Windwos 7 and with Xubuntu 13.04 under otherwise identical conditions (I did not tested Xubuntu 12.04). But the error occures with Ubuntu 12.04 and Kubuntu 12.04.</p></li>
  <li><p>My workaround is to use WindowBuilder Pro with Xubuntu 13.04 installed in VirtualBox. Of course this can not be a permanent solution, because I want to continue to use Ubuntu 12.04 LTS.</p></li>
  <li><p>I have read <a href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wb.doc.user%2Fhtml%2Ffaq.html" rel="nofollow noreferrer">http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wb.doc.user%2Fhtml%2Ffaq.html</a>.</p></li>
  <li><p>Here the same problem is described, but there are no answers: <a href="https://stackoverflow.com/questions/15818379/windowbuilder-eclipse-away-from-the-actual-component?rq=1">https://stackoverflow.com/questions/15818379/windowbuilder-eclipse-away-from-the-actual-component?rq=1</a> </p></li>
  <li><p>Here a possible workaround is descibed: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=417224" rel="nofollow noreferrer">https://bugs.eclipse.org/bugs/show_bug.cgi?id=417224</a></p></li>
  </ul>