Some experiments with multithreading, also used Swing.