Java program to display Tasks in a window.