Examples of MattePainter


Examples of org.jdesktop.swingx.painter.MattePainter

        PinstripePainter stripes = new PinstripePainter();
        stripes.setPaint(new Color(1.0f, 1.0f, 1.0f, 0.17f));
        stripes.setSpacing(5.0);

        MattePainter matte = new MattePainter(new Color(02, 98, 35));

        header.setBackgroundPainter(new CompoundPainter(matte, stripes, gloss));
    }
View Full Code Here

Examples of org.jdesktop.swingx.painter.MattePainter

        //create the message and hyperlink and hide them
        errorMessageLabel.setIcon(UIManager.getIcon(CLASS_NAME + ".errorIcon", getLocale()));
        errorMessageLabel.setVerticalTextPosition(SwingConstants.TOP);
        errorMessageLabel.setLineWrap(true);
        errorMessageLabel.setPaintBorderInsets(false);
        errorMessageLabel.setBackgroundPainter(new MattePainter(UIManager.getColor(CLASS_NAME + ".errorBackground", getLocale()), true));
        errorMessageLabel.setMaxLineSpan(320);
        errorMessageLabel.setVisible(false);

        //aggregate the optional message label, content, and error label into
        //the contentPanel
View Full Code Here

Examples of org.jdesktop.swingx.painter.MattePainter

{

   public static Painter get(Paint col)
   {
      // set the background painter
      MattePainter mp = new MattePainter(col);
      OurGlossPainter gp = new OurGlossPainter(Colors.White.alpha(0.3f),
              OurGlossPainter.GlossPosition.TOP);
      /*PinstripePainter pp = new PinstripePainter(Colors.Gray.alpha(0.2f),
              45d);*/
      return (new CompoundPainter(mp, gp));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.