Not
exactly a Java2D-specific question, but ...
You
want to create your own custom component which will do custom painting.
See this section of the Java tutorial for details on how to do
that.
Once
you've set up your custom component, what you'll want to do is implement the
paint component method to first paint the jpeg, and then paint the X's (over the
jpeg). So it'll look something like this:
protected void paintComponent(Graphics g)
{
paintImage(g);
paintAnnotations(g);
}
You'll, of course, have to write the paintImage and paintAnnotations
methods to do what you need.
If you
have any more questions about this, feel free to write back. Off-list is
probably better, as this isn't really a Java2D topic.
HTH,
DR
============================================================================== |
<<attachment: image001.jpg>>