akreulach / libjcsi

Automatically exported from code.google.com/p/libjcsi
0 stars 0 forks source link

Swing Console Box: Refreshing issue #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Swing Console Box implementation in a program which makes lots of 
consecutive refreshes.

(Pending: Add a source example)

What is the expected output? What do you see instead?
A ugly thing happens, with refresh being delayed, possibly because of 
threading issues.

Original issue reported on code.google.com by java.ko...@gmail.com on 4 Sep 2008 at 6:43

GoogleCodeExporter commented 8 years ago
Check RefreshTest to see the problem.  It looks like it's a normal problem of 
the
program running faster than the drawing methods.  We could either force a delay 
after
each draw or attempt to create a double buffer by building two planes and 
drawing to
the one in the background and then swapping it to the front and repeating that 
process.

I'm in favor of simply enforcing a small delay as it will be easier to 
implement,
have less object overhead, and not hinder performance.

Original comment by eben.how...@gmail.com on 12 Sep 2008 at 3:11

GoogleCodeExporter commented 8 years ago
I say lets force the delay

Original comment by java.ko...@gmail.com on 26 Sep 2008 at 2:42

GoogleCodeExporter commented 8 years ago
Sounds good, I'm on it

Original comment by eben.how...@gmail.com on 26 Sep 2008 at 2:46

GoogleCodeExporter commented 8 years ago
This should be mostly dealt with at this point.  Would you do a review and 
check how
it looks for you?

Original comment by eben.how...@gmail.com on 22 Oct 2008 at 2:27