Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #548

Re: How an I use a copy o

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
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)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1167839157.296301.275110@k21g2000cwa.googlegroups.com>
References <1167839157.296301.275110@k21g2000cwa.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 31
Date Wed, 27 Apr 2011 15:28:10 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918090 96.60.20.240 (Wed, 27 Apr 2011 10:28:10 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:28:10 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:548

Show key headers only | View raw


  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 | NextPrevious in thread | Next in thread | Find similar


Thread

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