wood burning stoves 2.0*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why jvm don´t call paintComponent(Graphics g)?