Original Post
I have a program in java that uses RMI with a server and a client, the client calls a server's method and the server should draw an apropiate image according to the method called but nothing happends. here's the method: public void derecha () throws RemoteException{ i = 1; repaint(); System.out.println ("Moving to the right... "); } Here's the paint method: public void paint( Graphics g ) { g.translate(this.getInsets().left,this.getInsets().top); switch(i){ case 0: g.drawImage(imgIzq.getImage(), 0, 0, this); break; case 1: g.drawImage(imgDer.getImage(), 0, 0, this); break; } } What's the problem? Thanks in advance.