ciao
la compilazione del codice sotto indicato mi da errore , non capisco perchè ;
per favore potete aiutarmi ?

Codice:
import java.awt.*;
//import java.awt.event.*;
import java.lang.*;
import java.util.*;

/**
 * Write a description of class Anagrafe1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */

public class Anagrafe2 extends Frame
{

Label nome=new Label("nome");
TextField uno=new TextField();
Button agisci=new Button("fine");

// Costruttore classe Anagrafe
public Anagrafe2 ()
{ 
setLayout(new GridLayout(8,2));
agisci.addActionListener(new Ascoltatore());
agisci.setActionCommand("chiudi");    // setup comando

add(nome);
add(uno);
add(agisci);

pack();
setvisible(true);
}

// main
public static void main (String [] arg)
{
new Anagrafe2();
}

// Ascoltatore di eventi Action
public class Ascoltatore implements ActionListener
{
public void actionPerformed (ActionEvent e)
{
String Comando=e.getActionCommand();
if (Comando.compareTo("fine")==0){
    System.Out.PrintLn(“nome     :” + nome);
    System.exit(0); 
   };
else 
   {
   etic.setText("comando sbagliato, riprova");
   agisci.setActionCommand("fine”);  
   }
}
}

}
grazie

ciao