Re: Drawing problem
- From: "Robert Sturzenegger" <nobody@xxxxxxxxxxx>
- Date: Sun, 4 Mar 2007 10:28:32 +0100
"Michael Rauscher" <michlmann@xxxxxx> wrote in message
news:esc7i4$lvv$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Robert Sturzenegger schrieb:
Hello
I would like to draw a graph in a container. Since the calculation of the
graph may be very time consuming, I would like to watch how the graph
builds up.
If it's just for testing purposes, you could turn off Swing's double
buffering. Otherwise Andrew Thompson's method is much preferred.
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Painter p = new Painter();
RepaintManager.currentManager(p).setDoubleBufferingEnabled(false);
Bye
Michael
Thank you for your response!
I tried this and it really accomplishes what I want. Since you stated, that
this solution should be for testing purposes only and that Andrew Thompson's
method would be the preferred one, I also wanted to try his way. However I
failed .... Details can be found in a response to his suggestion.
Thanks, Robert
.
- Follow-Ups:
- Re: Drawing problem
- From: Michael Rauscher
- Re: Drawing problem
- References:
- Drawing problem
- From: Robert Sturzenegger
- Re: Drawing problem
- From: Michael Rauscher
- Drawing problem
- Prev by Date: Re: Drawing problem
- Next by Date: Re: Drawing problem
- Previous by thread: Re: Drawing problem
- Next by thread: Re: Drawing problem
- Index(es):
Relevant Pages
|