Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why jvm don´t call paintComponent(Graphics g)?

 
Fernando hiar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I loaded the Image in the class CarregarImagem this code é alright, but when I draw the images the jvm don´t call paintComponent, why?


here my code:
PintarImage class:


Inicial class:

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> but when I draw the images the jvm don´t call paintComponent, why?

it probably does, but it's size might be 0

try adding the indicated line
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic