wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: Why jvm don´t call paintComponent(Graphics g)?
 
Similar Threads
applet to change an image when keypressed
Need help in ball breaker game
Showing Images in Splash Screen
How to transfere ActionListener to anothe Class
a very elusive bug