hello,
I have a JFrame that I put two components, one on BorderLayout.CENTER
and the other is at EAST.
When I cover with another window, and then uncover,
the part that is uncovered does NOT refresh.
It is unbelievable.
I put the component at EAST to another JFrame and no such problem
happens. The component on CENTER uses some library and rendering
that I didn't write myself (JUNG's GraphDraw).
Any ideas? What could be the problem?
Or, how can I fix it?
thanks,
alex
Oliver Wong - 29 Sep 2005 22:51 GMT
> hello,
>
[quoted text clipped - 10 lines]
> Any ideas? What could be the problem?
> Or, how can I fix it?
I'm not familiar with Jung GraphDraw, and I'm too lazy to read through
the whole API documentation for you. That being said, I am willing to help
you if you post an SSCCE: http://www.physci.org/codes/sscce.jsp
By posting a short compilable example, I can see what classes of the
JUNG API you're actually using, and then only read the documentation for
those classes. Try to make the example as short as possible while still
demonstrating the bug, or else I might get discouraged by its length and not
bother reading it.
If it's of any help, my guess is that the problem has nothing to do with
your adding a component to the EAST.
- Oliver
alex_us01 - 30 Sep 2005 02:11 GMT
Thanks, Oliver.
I would agree with your guess that it doesn't have to do anything with
adding it to the EAST. I was working on my home computer when I posted.
Now, I am working on another computer and I can't see the problem any
more. I hope it is gone. Otherwise, I have no idea what is causing it.
Thanks for offering your help. I really appreciate it.
all the best,
alex
Andrew Thompson - 30 Sep 2005 02:39 GMT
> ..I hope it is gone.
I doubt it, your problem reads like an FAQ.
<http://www.physci.org/guifaq.jsp#2.4>
<http://www.physci.org/guifaq.jsp#5.1>
Roedy Green - 30 Sep 2005 03:24 GMT
>I have a JFrame that I put two components, one on BorderLayout.CENTER
>and the other is at EAST.
>When I cover with another window, and then uncover,
>the part that is uncovered does NOT refresh.
>It is unbelievable.
Without posting any code all you can get are guesses. The usual
reason for lack of redraw is tying up the Swing thread with a sleep or
cpu intensive task.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.