This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
change text area background color at run time.
change back text of button with help of Thread.sleep()
Midlet Colours? (On forms etc..)
JButton is not displaying the background color
How does canvas, an exteded JPanel obj have methods getSize(), createImage(size.width, size.height)?