public void edit(Object plotCanvas){
  String _label=JOptionPane.showInputDialog((PlotCanvas)plotCanvas,"Choose axis label",label);
  if (_label != null) {
    setLegend(_label);
  }
}

public void edit ( Object plotCanvas ) { String _label = JOptionPane . showInputDialog ( ( PlotCanvas ) plotCanvas , "Choose axis label" , label ) ; if ( _label != null ) { setLegend ( _label ) ; } }
opens a dialog window and asks the user for the name of this axis .
