@@ -0,0 +1,1199 @@
+package ui;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Container;%0Aimport java.awt.Dimension;%0Aimport java.awt.Font;%0Aimport java.util.List;%0A%0Aimport javax.swing.DefaultListModel;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JList;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.ListSelectionModel;%0A%0Aimport sun.Word;%0A%0Apublic class Word_ui extends JFrame%7B%0A%09public Word_ui(List%3CWord%3E words)%7B%0A%09%09Container c=getContentPane();%0A%09%09c.setLayout(null);%0A%09%09%0A%09%09JLabel lbl=new JLabel(%22Word distribution on topics%22);%0A%09%09lbl.setLocation(10, 0);%0A%09%09lbl.setSize(new Dimension(300,40));%0A%09%09lbl.setFont(new Font(%22TimesRoman%22, Font.BOLD, 17));%0A%09%09c.add(lbl);%0A%09%09%0A%09%09%0A%09%09DefaultListModel%3CJPanel%3E listmodel=new DefaultListModel%3CJPanel%3E();%0A%09%09JList%3CJPanel%3E list = new JList%3CJPanel%3E(listmodel); %0A%09%09list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);%0A%09%09JScrollPane listScroller = new JScrollPane(list);%0A%09%09listScroller.setBounds(10, 55, 380, 250);%0A%09%09listScroller.setBackground(Color.WHITE);%0A%09%09c.add(listScroller);%0A%09%09for(Word word : words)%7B%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09    setTitle(%22Words%22);%0A%09    setSize(400,340);%0A%09    setVisible(true);%0A%09    this.setLocationRelativeTo(null);%0A%09%7D%0A%7D%0A

Create Word_ui.java