Example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getPrimaryControlDarkShadow

List of usage examples for com.jgoodies.looks.plastic PlasticLookAndFeel getPrimaryControlDarkShadow

Introduction

In this page you can find the example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getPrimaryControlDarkShadow.

Prototype

public static ColorUIResource getPrimaryControlDarkShadow() 

Source Link

Usage

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawActiveButtonBorder(Graphics g, int x, int y, int w, int h) {
    drawFlush3DBorder(g, x, y, w, h);/*from  w w w.j  a  v a 2  s . c o m*/
    g.setColor(PlasticLookAndFeel.getPrimaryControl());
    g.drawLine(x + 1, y + 1, x + 1, h - 3);
    g.drawLine(x + 1, y + 1, w - 3, x + 1);
    g.setColor(PlasticLookAndFeel.getPrimaryControlDarkShadow());
    g.drawLine(x + 2, h - 2, w - 2, h - 2);
    g.drawLine(w - 2, y + 2, w - 2, h - 2);
}