wood burning stoves 2.0*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change canvas background colour at button click