Example #1
0
 /** Called by the constructor methods to create the default rootPane. */
 protected JRootPane createRootPane() {
   JRootPane rp = new JRootPane();
   // NOTE: this uses setOpaque vs LookAndFeel.installProperty as there
   // is NO reason for the RootPane not to be opaque. For painting to
   // work the contentPane must be opaque, therefor the RootPane can
   // also be opaque.
   rp.setOpaque(true);
   return rp;
 }
Example #2
0
    Component createComponent(Component owner) {
      Panel component = new MediumWeightComponent();

      rootPane = new JRootPane();
      // NOTE: this uses setOpaque vs LookAndFeel.installProperty as
      // there is NO reason for the RootPane not to be opaque. For
      // painting to work the contentPane must be opaque, therefor the
      // RootPane can also be opaque.
      rootPane.setOpaque(true);
      component.add(rootPane, BorderLayout.CENTER);
      return component;
    }
Example #3
0
 /*
  * (non-Javadoc)
  *
  * @see javax.swing.JFrame#createRootPane()
  */
 @Override
 protected JRootPane createRootPane() {
   JRootPane rp = new JRibbonRootPane();
   rp.setOpaque(true);
   return rp;
 }