GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Change canvas background colour at button click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change canvas background colour at button click" Watch "Change canvas background colour at button click" New topic
Author

Change canvas background colour at button click

khushbushah shah
Greenhorn

Joined: Jun 25, 2012
Posts: 10
Hi,

I am developing Java applet, which have canvas in it.
I want to change background color of canvas at one button click.

i have changed it using



but the content of canvas which i have drawn is lost.
How to changed canvas background color of canvas.

Thanks in Advance.
 
Consider Paul's rocket mass heater.
 
subject: Change canvas background colour at button click