Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #548
| From | "Fred Kleinschmidt" <fred.kleinschmidt@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: How an I use a copy o |
| Message-ID | <JBAwzx.6HK@news.boeing.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1167839157.296301.275110@k21g2000cwa.googlegroups.com> |
| Date | 2011-04-27 15:28 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui <djubre@myway.com> wrote in message news:1167839157.296301.275110@k21g2000cwa.googlegroups.com... > Thanks for the try, but that's not what I need. I need the component's > Graphic AFTER the drawing is completely done, so invoking > super.paintComponents(g) is not suitable. > You seem to misunderstand what a Graphics is. It is NOT the image that is drawn on the screen. It merely contains things like background and foreground color, clip rectangles, font, line style, line overlap style, etc., that will be used by its other methods to render what the component's paintComponent method uses do draw on the screen. For example, if the component wants to draw four lines using four deifferent colors, it will have to modify the Graphics to set the correct color to use, then call g.drawLine(). This must be repeated for each line. The lines themselves are NOT part of the Graphics component. The same thing is true about all of the text, images, etc. that may be drawn by the component. -- Fred L. Kleinschmidt Boeing Associate Technical Fellow Technical Architect, Software Reuse Project --- * 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 | Next in thread | Find similar
How an I use a copy of Gr "djubre" <djubre@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "djubre" <djubre@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "djubre" <djubre@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Fred Kleinschmidt" <fred.kleinschmidt@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
Re: How an I use a copy o "Judy Szikora" <judy.szikora@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
csiph-web