public void paintValue(Graphics g,Rectangle box){
  Color oldColor=g.getColor();
  Font oldFont=g.getFont();
  g.setColor(Color.blue);
  g.setFont(new Font(oldFont.getFontName(),Font.BOLD,oldFont.getSize()));
  g.drawRect(box.x - 1,box.y + 1,box.width - 2,box.height - 2);
  g.setColor(Color.white);
  g.drawString("Click to Edit",box.x + 10,box.y + box.height / 2 + 4);
  g.setFont(oldFont);
  g.setColor(oldColor);
}

public void paintValue ( Graphics g , Rectangle box ) { Color oldColor = g . getColor ( ) ; Font oldFont = g . getFont ( ) ; g . setColor ( Color . blue ) ; g . setFont ( new Font ( oldFont . getFontName ( ) , Font . BOLD , oldFont . getSize ( ) ) ) ; g . drawRect ( box . x - 1 , box . y + 1 , box . width - 2 , box . height - 2 ) ; g . setColor ( Color . white ) ; g . drawString ( "Click to Edit" , box . x + 10 , box . y + box . height / 2 + 4 ) ; g . setFont ( oldFont ) ; g . setColor ( oldColor ) ; }
represents the face of the custom property editor as a rectangular box containing the text " click to edit " .
