public void paintValue(java.awt.Graphics gfx,java.awt.Rectangle box){
  FontMetrics fm=gfx.getFontMetrics();
  int vpad=(box.height - fm.getHeight()) / 2;
  File f=(File)getValue();
  String val="No file";
  if (f != null) {
    val=f.getName();
  }
  gfx.drawString(val,2,fm.getHeight() + vpad);
}

public void paintValue ( java . awt . Graphics gfx , java . awt . Rectangle box ) { FontMetrics fm = gfx . getFontMetrics ( ) ; int vpad = ( box . height - fm . getHeight ( ) ) / 2 ; File f = ( File ) getValue ( ) ; String val = "No file" ; if ( f != null ) { val = f . getName ( ) ; } gfx . drawString ( val , 2 , fm . getHeight ( ) + vpad ) ; }
paints a representation of the current object .
