Hi,
How can I change the Canvas color?
thanks
eml
Printable View
Hi,
How can I change the Canvas color?
thanks
eml
eml,
I guess you are talking about the background color. There is really no other way doing it than:
public void paint(Graphics g) {
g.setColor(0, 0, 0); // or whatever background color you wish
g.fillRect(0, 0, getWidth(), getHeight());
// the rest of the paint() method implementation follows
}
Kind regards,
Tinke / FN
yes I was talking about the canvas background color.
thanks to your reply.
hi, Canvas dont have background color. Draw fill rect first at paint method.
see tinkezione sample