Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #995
| From | "Sowen Zhang" <sowen.zhang@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: how to draw sth on a |
| Message-ID | <erftb0$m70$1@canopus.cc.umanitoba.ca> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1172010917.194174.118560@m58g2000cwm.googlegroups.com> |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui good reference, thanks a lot! -- Best Regards! Hong. "Andrew Thompson" <andrewthommo@gmail.com> wrote in message news:1172010917.194174.118560@m58g2000cwm.googlegroups.com... > On Feb 21, 9:27 am, "Sowen Zhang" <sowenche...@gmail.com> 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. > --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
how to draw sth on a Pane "Sowen Zhang" <sowen.zhang@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: how to draw sth on a "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: how to draw sth on a "Sowen Zhang" <sowen.zhang@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
csiph-web