wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
 
subject: Change canvas background colour at button click
 
Similar Threads
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)?
change text area background color at run time.