GUI updated to use List with DefaultListModel for displaying the output.