in realtà ho inziato con un esempio..praticamente con un Label e un Bottone , quando clicco sul bottone dovrebbe uscire la scritta nella Label "Saluta Pippo" ...cmq ti posto il codice
codice:
public class bohhh extends javax.swing.JApplet {
 public void init() {
        try {
            java.awt.EventQueue.invokeAndWait(new Runnable() {
                public void run() {
                    initComponents();
                }
            });
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
    public  void Start(){
         super.start();
    }
    public void Stop(){
         super.stop();
      }
    public void deploy(){
        super.destroy();
    }
  public  void bottoneP(java.awt.event.ActionEvent evn){
          txtSaluta.setText("SalutaPippo");
   }
}