I'm a total newbie, trying to teach myself Java and can't seem to figure out
why this won't work. I'm thinking it has something to do with it being an
applet, but I haven't a clue as to what I have done wrong here. Any help
would be greatly appreciated.

btw- the intent is to have two buttons, one that displays the current date
and the other, the current time.

thnx

heres the code:
//Push Button for time Applet

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.util.*;

public class TodayIs extends Applet

{
private Button pushMe1,pushMe2;

public void init()
{
// Create pushMe1 Button
pushMe1=new Button("Press here for Date");
pushMe1.addActionListener(new pushMe1Handler(this));
add(pushMe1);

// Create pushMe2 Button
pushMe2=new Button("Press here for Time");
pushMe2.addActionListener(new pushMe2Handler(this));
add(pushMe2);
}
}

//Event handler for pushMe1
class pushMe1Handler implements ActionListener
{
Applet applet;

public pushMe1Handler( Applet a) {applet=a;}

public void actionPerformed(ActionEvent e)
{
Date toDay=new Date();
System.out.print("Todays Date is");
System.out.println(toDay);
}
}

//Event handler for pushMe2
class pushMe2Handler implements ActionListener
{
Applet applet;
public pushMe2Handler( Applet a){applet=a;}
public void actionPerformed(ActionEvent e)
{
Date TimeNow=new Date();
Label TimeIs=new Label("The Current Time is ");
Label RightNow=new Label(TimeNow.getTime());
add(TimeIs);
add(RightNow);
}
}