New constructor and JFrame added.