So you are basicaly having trouble nesting your if's? As it stands now it looks like you have a mouse listener for your applet not the panel.