Re: Drawing problem




"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


.



Relevant Pages

  • Re: Figures in data box and percentages in graph
    ... Andrew ... > Jon Peltier, Microsoft Excel MVP ... > Peltier Technical Services ... >> bars/lines in the body of the graph to be based on percentages. ...
    (microsoft.public.excel.charting)
  • Re: Creating a graph
    ... instantiate a graph, set up colors, etc etc... ... Andrew ... Prev by Date: ...
    (comp.lang.tcl)
  • Re: How do I generate C++ Call and Callers Graph in vs.net 2003?
    ... > of a function from the Browse tool using "Callers Graph". ... Andrew ... Prev by Date: ...
    (microsoft.public.vsnet.ide)
  • RE: Wont boot all the way
    ... "Andrew E" wrote: ... > Sfc /Scannow When the graph starts,install xp cd,exit the info page.When the ... > Restart computer. ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Wont boot all the way
    ... "Andrew E" wrote: ... > Sfc /Scannow When the graph starts,install xp cd,exit the info page.When the ... > Restart computer. ...
    (microsoft.public.windowsxp.help_and_support)