The Java(tm) FAQ -- Drawing
Copyright
Table of Contents
Chapters:
1
2
3
4
5
6
7
8
9
10
11
Outline
Q8.1
What is the paint method for, when is it invoked, and by whom?
PaintExample.html
See also: Q5.1, Q8.2, Q8.3, Q8.5, Q8.6, Q9.17
Q8.2
What should I put in my paint method?
SlowPaintExample.html
See also: Q8.18
Q8.3
What is repaint for, when is it invoked, and by whom?
RepaintExample.html
See also: Q8.1, Q8.4
Q8.4
Why do my repeated calls to repaint not have any effect?
BusyRepaintExample.html
See also: Q9.5, Q9.13, Q9.15
Q8.5
What is update for, when is it invoked, and by whom?
UpdateExample.html
See also: Q8.1, Q8.2, Q8.3, Q8.5, Q8.18
Q8.6
What drawing occurs if my applet or other component reappears after
being covered by some other window?
See also: Q8.1, Q8.3, Q8.4, Q8.5
Q8.7
Can I implement an invisible or partly transparent component?
See also: Q4.13, Q5.9
Q8.8
How does the XOR drawing mode work?
XORDrawingExample.html
Q8.9
How do I load an image from the net into my applet?
See also: Q4.12, Q8.15
Q8.10
How do I load an image from a file in a stand-alone Java application,
rather than in an applet?
AppGetImageExample.html
See also: Q4.12
Q8.11
When is an image actually loaded -- why not immediately?
See also: Q8.12
Q8.12
How can I make sure that my images are completely loaded before I
check for their data or parameters?
TrackImageExample.html, TrackErrorImageExample.html
See also: Q8.10, Q8.11, Q8.13
Q8.13
Why does my call to Graphics's drawImage
method fail to show the image?
FailedDrawImageExample.html, TrackErrorImageExample.html
See also: Q1.20, Q8.12
Q8.14
Can I force Applet's getImage method to make
a new connection for each image rather than reusing a cached version
of the image?
FlushImageExample.html
See also: Q8.15
Q8.15
How do I draw text over a background image?
TextOnImageExample.html
See also: Q8.14, Q8.16
Q8.16
How do I load and display a transparent GIF image over a background
image?
TransparentImageExample.html
See also: Q8.15
Q8.17
How can I create an image from a buffer of raw image data (red, green,
and blue values for each pixel)?
MemoryImageExample.html
See also: Q8.22
Q8.18
What is double buffering -- how can I create and draw to an offscreen
image?
OffscreenImageExample.html
See also: Q8.5
Q8.19
How can I get at the raw data of an image, such as the pixel value at
a given coordinate?
GrabPixelsExample.html
See also: Q2.23, Q8.17, Q9.16
Q8.20
Using the JDK 1.0.2, can I clear or reset a clipping rectangle that
either I or the system has created?
SubgraphicsExample.html
See also: Q8.23
Q8.21
Using the JDK 1.0.2, can I copy a subarea of one image into another
image?
CopyImageSubareaExample.html
See also: Q8.20, Q8.24
Q8.22
How do I control animation with MemoryImageSource?
See also: Q8.14, Q8.17
Q8.23
Using the JDK 1.1, how do I reset a clipping rectangle?
ResetClip11Example.html
See also: Q8.20
Q8.24
What's the best way in JDK 1.1 to draw just a subarea of an image?
See also: Q8.21