public void addAddDeleteButtons(){
  JButton deleteButton=new JButton("Delete");
  deleteButton.setAction(TimeSeriesPlotActions.getRemoveSourceAction(this));
  JButton addButton=new JButton("Add");
  addButton.setAction(TimeSeriesPlotActions.getAddSourceAction(this));
  buttonPanel.add(deleteButton);
  buttonPanel.add(addButton);
}

public void addAddDeleteButtons ( ) { JButton deleteButton = new JButton ( "Delete" ) ; deleteButton . setAction ( TimeSeriesPlotActions . getRemoveSourceAction ( this ) ) ; JButton addButton = new JButton ( "Add" ) ; addButton . setAction ( TimeSeriesPlotActions . getAddSourceAction ( this ) ) ; buttonPanel . add ( deleteButton ) ; buttonPanel . add ( addButton ) ; }
add buttons for adding and deleting sources .
