Skip to main content

[JAVA2D] FW: [JAVA2D] disappearing borders

2 replies [Last post]
Anonymous

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.

*****************************************************************************

David Braun-Friedman

Programador de Telecomunicaciones

Departamento de Electr�nica y Comunicaciones

Email (CEIT): dbraun-friedman@ceit.es

Email (Fuera): dbra5506@postoffice.uri.edu

Tlfno: 943 212 800 Extensi�n: 289

M�vil: 628527739

Centro de Estudios e Investigaciones T�cnicas C.E.I.T.

Paseo Manuel de Lardizabal, 15
20018 San Sebastian

*****************************************************************************

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]
[image001.jpg]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Rosenstrauch, David

-----Original Message-----
From: Discussion list for Java 2D API [mailto:JAVA2D-INTEREST@JAVA.SUN.COM]On
Behalf Of Braun-Friedman, David
Sent: Wednesday, June 23, 2004 10:21 AM
To: JAVA2D-INTEREST@JAVA.SUN.COM
Subject: [JAVA2D] FW: [JAVA2D] disappearing borders

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

==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Dmitri Trembovetski

Hi David,

It's hard to tell what could be wrong from your description. Do you
have a standalone test case which reproduces the problem?

What platform you're running on?

Have you tried your app with 1.5.0 beta2?

Thank you,
Dmitri

On Wed, Jun 23, 2004 at 04:20:52PM +0200, Braun-Friedman, David wrote:
>
>
> 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.
>
>
>
>
>
> *****************************************************************************
>
> David Braun-Friedman
>
> Programador de Telecomunicaciones
>
> Departamento de Electr?nica y Comunicaciones
>
> Email (CEIT): dbraun-friedman@ceit.es
>
> Email (Fuera): dbra5506@postoffice.uri.edu
>
> Tlfno: 943 212 800 Extensi?n: 289
>
> M?vil: 628527739
>
>
>
> Centro de Estudios e Investigaciones T?cnicas C.E.I.T.
>
> Paseo Manuel de Lardizabal, 15
> 20018 San Sebastian
>
>
>
> *****************************************************************************
>
>
>
> =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".