Re: how to draw sth on a Panel permanently?
- From: "Sowen Zhang" <sowencheung@xxxxxxxxx>
- Date: Tue, 20 Feb 2007 16:39:25 -0600
good reference, thanks a lot!
--
Best Regards!
Hong.
"Andrew Thompson" <andrewthommo@xxxxxxxxx> wrote in message
news:1172010917.194174.118560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
.
- References:
- how to draw sth on a Panel permanently?
- From: Sowen Zhang
- Re: how to draw sth on a Panel permanently?
- From: Andrew Thompson
- how to draw sth on a Panel permanently?
- Prev by Date: Re: how to draw sth on a Panel permanently?
- Next by Date: Re: Refreshing a GUI
- Previous by thread: Re: how to draw sth on a Panel permanently?
- Index(es):
Relevant Pages
|