Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to?

 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have an applet which displays an image gradually moving. When it is viewed in Navigator initially the whole width of applet is in grey color and as the image moves it clears this grey color. How do I make it white completely before the image start moving. I mean I dont want to see the grey color. ie has no problem.
Thanks
Nasser
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nasser,
As a first pass you could just draw a filled rectangle using Color.white and make it the size of the applet.
Regards,
Manfred.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
From Component, Applets inherit the setBackground(Color) method.
So, you could do this:

Good Luck
 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks
Nasser
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic