a small application using Swing and Multi-thread