I would very much appreciate
some feedback on the following:
I have a small problem that
seems
to be related to the version of jdk being used. I have an image
manipulation application which contains two canvases for viewing
images.
At program startup both canvases are assigned and given etched
borders.
My program has a function that allows a user to annotate an image by drawing
crosses on its graphical context. When using the jdk1.4, the first
time
an annotation is painted through a mouseclick, the borders disappear for
good. This problem does not occur with jdk1.3. If anyone
can
help me to figure why this is happening or how to resolve the problem so
everything works with the latest jdk, it would be much appreciated.
Thanks.
[Rosenstrauch,
David]
It's
really pretty hard to say what could be causing this, given that there were
not much details provided in your message. (I suspect that this is why
no one responded.)
Off
the top of my head, I can't think of too many reasons why this
would
happen. Only guess that comes to mind is: are you re-sizing the
image canvases when people start annotating them? If so, perhaps then
the image canvas is being displayed on top of the border and so wiping it
out.
Beyond that, it's hard to hazard a guess without
more
detail. Maybe you can post a small, relevant piece of code up to the
list here. (Or, if you need people to see more code, maybe you can
just
put it on a web site and post the URL here.)
If
you provide more info, maybe someone will be able to help you come up with a
solution.
DR