Exemplo n.º 1
0
 /**
  * Installs the UI.
  *
  * @param c
  */
 @Override
 public void installUI(JComponent c) {
   super.installUI(c);
   c.setOpaque(false);
   //  BasicBorders$SplitPaneBorder paints gray border
   //  resulting in a 2pt border for the left/right components
   //  but results in 1pt gray line on top/button of divider.
   //  Still, a 1 pt shaddow light gay line is painted
   c.setBorder(null);
 } //  installUI
 /** If necessary <code>c</code> is made opaque. */
 private void maybeMakeButtonOpaque(JComponent c) {
   Object opaque = UIManager.get("SplitPane.oneTouchButtonsOpaque");
   if (opaque != null) {
     c.setOpaque(((Boolean) opaque).booleanValue());
   }
 }
Exemplo n.º 3
0
 public void uninstallUI(JComponent c) {
   c.setOpaque(true);
   super.uninstallUI(c);
 }
Exemplo n.º 4
0
 public void installUI(JComponent c) {
   super.installUI(c);
   c.setOpaque(false);
 }