import java.applet.*; import java.awt.*; import j ava.awt.event.*;
public class MyMouse extends Applet implements MouseListener ( public void init() (
addMouseListener(this);
public void paint(Graphics g) {
g.drawString("Zobacz komunikat w .jaśku statusu", 10,10);
)
public void nousePressed(MouseEvent e) {
showStatus("mouse Pressed"); public void mouseReleased(MouseEvent e) (
showStatus("mouse Released") public void nouseEntered(MouseEvent e) {
showStatus("mouse Entered"); public void mouseExited(MouseEvent e) {
showStatus("mouse Exited");)