List of usage examples for com.jgoodies.looks.plastic PlasticLookAndFeel getPrimaryControl
public static ColorUIResource getPrimaryControl()
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 www . ja va 2s . c om 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); }