
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 1.00 KB | hits: 9 | expires: Never
public void paint(Graphics g){
Color solidblack = new Color(0, 0, 0, 255);
Color hide_translucentwhite = new Color(255, 255, 255, 72);
Color hide_transparent = new Color(0, 0, 0, 0);
Color hide_grey = new Color(143, 143, 143, 89);
Color hide_fontgrey = new Color(143, 143, 143, 191);
Color hide_blackborder = new Color(0, 0, 0, 217);
GradientPaint hide_gloss = new GradientPaint(447, 482, hide_translucentwhite, 447, 492, hide_transparent);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(solidblack);
g2.fillRoundRect(404, 481, 111, 21, 8, 8);
g2.setPaint(hide_gloss);
g2.fillRoundRect(404, 481, 111, 21, 8, 8);
g2.setColor(hide_grey);
g2.drawRoundRect(405, 482, 109, 19, 8, 8);
g2.setColor(hide_blackborder);
g2.drawRoundRect(404, 481, 111, 21, 8, 8);
if (paintfont != null) {
g2.setColor(hide_fontgrey);
g2.setFont(paintfont);
g2.drawString("hide paint", 431, 496);
}
}