Re: how to draw sth on a Panel permanently?
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 20 Feb 2007 14:35:17 -0800
On Feb 21, 9:27 am, "Sowen Zhang" <sowenche...@xxxxxxxxx> wrote:
....
I need to draw sth to a Panel in an action, for instance
Graphics g = palCanvas.getGraphics();
This is the wrong way to approach
custom painting. It hould be done
on the Graphics object supplied to
paint()/paintComponent().
See,
<http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html>
for further details.
Andrew T.
.
- Follow-Ups:
- Re: how to draw sth on a Panel permanently?
- From: Sowen Zhang
- Re: how to draw sth on a Panel permanently?
- References:
- how to draw sth on a Panel permanently?
- From: Sowen Zhang
- how to draw sth on a Panel permanently?
- Prev by Date: how to draw sth on a Panel permanently?
- Next by Date: Re: how to draw sth on a Panel permanently?
- Previous by thread: how to draw sth on a Panel permanently?
- Next by thread: Re: how to draw sth on a Panel permanently?
- Index(es):