public void addClearGraphDataButton(){
  JButton clearButton=new JButton("Clear");
  clearButton.setAction(TimeSeriesPlotActions.getClearGraphAction(this));
  buttonPanel.add(clearButton);
}

public void addClearGraphDataButton ( ) { JButton clearButton = new JButton ( "Clear" ) ; clearButton . setAction ( TimeSeriesPlotActions . getClearGraphAction ( this ) ) ; buttonPanel . add ( clearButton ) ; }
add button for clearing graph data .
