public Item(Drawable symbol,String labelText,Font font){
  double fontSize=font.getSize2D();
  setLayout(new EdgeLayout(fontSize,0.0));
  this.symbol=symbol;
  add(symbol,Location.WEST);
  label=new Label(labelText);
  label.setFont(font);
  label.setAlignmentX(0.0);
  label.setAlignmentY(0.5);
  add(label,Location.CENTER);
}

public Item ( Drawable symbol , String labelText , Font font ) { double fontSize = font . getSize2D ( ) ; setLayout ( new EdgeLayout ( fontSize , 0.0 ) ) ; this . symbol = symbol ; add ( symbol , Location . WEST ) ; label = new Label ( labelText ) ; label . setFont ( font ) ; label . setAlignmentX ( 0.0 ) ; label . setAlignmentY ( 0.5 ) ; add ( label , Location . CENTER ) ; }
creates a new item object with the specified data source and text .
