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