aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Why jvm don´t call paintComponent(Graphics g)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why jvm don´t call paintComponent(Graphics g)?" Watch "Why jvm don´t call paintComponent(Graphics g)?" New topic
Author

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

Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 29

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

Joined: Jun 09, 2003
Posts: 4632
> 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why jvm don´t call paintComponent(Graphics g)?