windsofhell
de bandeija, so compilar : 
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class p extends JFrame {
JPanel north;
JPanel south;
JLabel label1;
JLabel label2;
int estado = 0;
public p() {
getContentPane().setLayout(new BorderLayout());
//setSize(new Dimension(300,300));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
north = new JPanel();
south = new JPanel();
label1 = new JLabel("clique me");
label2 = new JLabel(" ");
north.add(label1);
south.add(label2);
north.setBackground(Color.YELLOW);
south.setBackground(Color.RED);
label1.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if(estado == 0) {
north.remove(label1);
south.add(label1);
estado = 1;
}
else {
south.remove(label1);
north.add(label1);
estado = 0 ;
}
north.repaint();
south.repaint();
}
});
add(north, BorderLayout.NORTH);
add(south, BorderLayout.SOUTH);
pack();
setVisible(true);
}
public static void main(String[] args) {
new p();
}
}