Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/03/2006, 02:32
GreenEyed
 
Fecha de Ingreso: octubre-2003
Mensajes: 3.578
Antigüedad: 21 años, 5 meses
Puntos: 51
Mira, buscando buscando hasta he encontrado por que:

http://java.sun.com/products/jfc/tsc...#swing_summary

Cita:
...
Swing Painting Guidelines
...
# Swing's implementation of paint() factors the call into 3 separate callbacks:

1. paintComponent()
2. paintBorder()
3. paintChildren()

Extensions of Swing components which wish to implement their own paint code should place this code within the scope of the paintComponent() method (not within paint()).
Ahora ya veo de donde viene. Paint() debiar ser del AWT y en Swing es paintComponent().

Hay que ver lo que se aprende .