converted to swingworker

Bug: index out of bounds at core.paintComponent 71