rp.getLayeredPane().add(new MetalTitlePane(rp), JLayeredPane.FRAME_CONTENT_LAYER);
rp.getLayeredPane().add(titlePane, JLayeredPane.FRAME_CONTENT_LAYER, 1);
  private void installWindowDecorations(JRootPane rp)  {    rp.setBorder(new MetalFrameBorder());    rp.setLayout(new MetalRootLayout());    // We should have a contentPane already.    assert rp.getLayeredPane().getComponentCount() == 1           : "We should have a contentPane already";    rp.getLayeredPane().add(new MetalTitlePane(rp),                            JLayeredPane.FRAME_CONTENT_LAYER);  }