|    
			
				28/10/2009, 00:58
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: enero-2008 Ubicación: Guatemala 
						Mensajes: 1.817
					 Antigüedad: 17 años, 9 meses Puntos: 260 |  | 
  |   Respuesta: Error al sobreescribir paint() de JPanel... Ayuda 
  Hola, 
Código:
      public void paint(Graphics g){
        Graphics2D aux=(Graphics2D)g;
        aux.setPaint(new GradientPaint(0,0,Color.darkGray,80,240,Color.lightGray,false));
        aux.fillRect(0,0, getWidth(), getHeight());
        // pane2.repaint();
        // cboColorFondo.repaint();
        super.paint(g);
    }
Saludos,     |