agir
September 20th, 2000, 05:39 PM
I´m not allowed to use the Swing stuff, and I have a problem with putting an Image on a Button ...
Can anyone, please, tell me how I can put an Image on a Button!
Thank you,
agir
dogbear
September 21st, 2000, 03:49 AM
Agir,
If you aren't allowed to use Swing, are you then allowed to use Symantec's library?
Symatec has ImageButton classes that allows easy loading of an image for a button and rest is taken care of.
If you want, I can send the source to you via email.
Otherwise, you can create an ImageButton class yourself by using a canvas as your base class, and overriding the paint(), repaint(), and update() methods. This might take a while but it's definitely possible.
Regards,
dogBear
PS Please Rate this Response!!!!