1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public class MouseApplet extends Applet implements MouseListener
{
private TextField status;
private Image theImage;
private TextArea textArea;
//private AudioClip theSound;
public void init()
{
//this.theSound = this.getAudioClip( this.getDocumentBase(), "start.wav" );
this.addMouseListener(this);
// Panel controls2 = new Panel();
this.theImage = this.getImage( this.getDocumentBase(), "portable.JPG" );
// controls2.add(this.theImage);
this.textArea = new TextArea(20,40);
Panel controls = new Panel();
this.status = new TextField();
controls.add(this.status); |
Partager