• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Images in Panel

 
Kulkarni Sitaram
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I'm developing a lotto game by drawing images on the panels and each panel is listenig for the action events.All is well but when a new window overlaps the browser where the applet is called then the images on the panel are erased .Even when the browser is resized or minimised the images are being erased.

Thank You,
Kulkarni
 
Pawel Veselov
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Images are not a components - so they don't redraw theirselves. You need to redraw image each time you got an update() request. Simply overload update(Graphics) of a Panel for redrawing images.

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )
 
Kulkarni Sitaram
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pawel Veselov:
Images are not a components - so they don't redraw theirselves. You need to redraw image each time you got an update() request. Simply overload update(Graphics) of a Panel for redrawing images.


Hey thank u for that...
One more question How can we reload an applet in a browser without hitting the refresh/reload button on the browser?
Thank u
Sitaram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic