Functional example

Although double buffer is a common feature, Java swing
resize mechanism is called several times cleaning progress
buffer, ending with an empty terminal output

I didn't care to much on correctness of example code, it just
works.