title: My JFrame doesn't display properly on Java1.5_u22/Linux
body: <p>I don't understand what is wrong. It looks like a bug in JVM 1.5/Linux/x86</p>
  
  <p>My JFrame is ok on JVM 1.8, but on 1.5, it is empty and it doesn't display content pane. And the frame is not maximized unless it is under 1.8</p>
  
  <pre><code>public class FrameBuilder {
  
      private static JFrame frame = new JFrame();
  
      public static JFrame getFrame() {
          frame.setTitle(Labels.get("app.title"));
          frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
          frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  
          frame.addWindowListener(getWindowListener());
  
          JPanel panel = new JPanel();
          panel.setBackground(Color.ORANGE);//should display orange background
          frame.setContentPane(panel);
  
          return frame;
      }
      public static void main(String[] args) {
          getFrame().setVisible(true);
      }
  }
  </code></pre>