Package dan.swing.painters

Examples of dan.swing.painters.GradientPainter


          //new LineBorder(Color.BLACK, 2, true),
          BorderFactory.createEtchedBorder(),
          BorderFactory.createEmptyBorder(5,5,5,5)
      ));

      GradientPainter p = new GradientPainter();
      p.setDirection(GradientPainter.TOP_LEFT_DIAGONAL);
      pnl.setComponentPainter(p);

      //pnl.setBackground(Color.GRAY.brighter());
      //pnl.setOpaque(true);
View Full Code Here


    GradientPainter groupPainter;
    GradientPainter selectedPainter;

    public CustomListCellRenderer() {
      groupPainter = new GradientPainter();

      selectedPainter = new GradientPainter();
      selectedPainter.setDirection(GradientPainter.TOP_RIGHT_DIAGONAL);
    }
View Full Code Here

    GradientPainter groupPainter;
    GradientPainter selectedPainter;

    public CustomListCellRenderer() {
      groupPainter = new GradientPainter();

      selectedPainter = new GradientPainter();
      selectedPainter.setDirection(GradientPainter.TOP_RIGHT_DIAGONAL);
    }
View Full Code Here

      JPrettyPanel panel = (JPrettyPanel)comp;

      Dimension dim = panel.getPreferredSize();
      panel.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));

      GradientPainter painter = new GradientPainter(Color.WHITE, new Color(200,200,200));
      painter.setDirection(GradientPainter.LEFT_TO_RIGHT);
      panel.setComponentPainter(painter);

      panel.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
      //panel.setBorder(new RoundedLineBorder(5));
    }
View Full Code Here

TOP

Related Classes of dan.swing.painters.GradientPainter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.