//add listeners and actions to the buttons
quarterButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
quarterButtonPressed();
total = total +25;
time = time +5;
System.out.println(total);