Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.00 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public void paint(Graphics g){
  2.                 Color solidblack = new Color(0, 0, 0, 255);
  3.                 Color hide_translucentwhite = new Color(255, 255, 255, 72);
  4.                 Color hide_transparent = new Color(0, 0, 0, 0);
  5.                 Color hide_grey = new Color(143, 143, 143, 89);
  6.                 Color hide_fontgrey = new Color(143, 143, 143, 191);
  7.                 Color hide_blackborder = new Color(0, 0, 0, 217);
  8.                 GradientPaint hide_gloss = new GradientPaint(447, 482, hide_translucentwhite, 447, 492, hide_transparent);
  9.                 Graphics2D g2 = (Graphics2D) g;
  10.                 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  11.                 g2.setColor(solidblack);
  12.                 g2.fillRoundRect(404, 481, 111, 21, 8, 8);
  13.                 g2.setPaint(hide_gloss);
  14.                 g2.fillRoundRect(404, 481, 111, 21, 8, 8);
  15.                 g2.setColor(hide_grey);
  16.                 g2.drawRoundRect(405, 482, 109, 19, 8, 8);
  17.                 g2.setColor(hide_blackborder);
  18.                 g2.drawRoundRect(404, 481, 111, 21, 8, 8);
  19.                 if (paintfont != null) {
  20.                         g2.setColor(hide_fontgrey);
  21.                         g2.setFont(paintfont);
  22.                         g2.drawString("hide paint", 431, 496);
  23.                 }
  24.         }