Commits

John Eriksson committed dca51f3

Aesthetic improvements

Comments (0)

Files changed (2)

src/se/kth/csc/sima/SimaGUICourseDialog.java

         this.setLayout(new BorderLayout(5, 5));
 
         JLabel label = new JLabel(manager.getJoinedCourseName());
+        label.setFont(new Font("Comic Sans MS", 0, 20));
         label.setHorizontalAlignment(SwingConstants.RIGHT);
-        label.setFont(new Font("sans-serif", Font.BOLD, 20));
+        
         this.add(label, BorderLayout.NORTH);
 
         this.queueListModel = new CourseModel();
         JTable courseList = new JTable(this.queueListModel);
+        courseList.setFont(new Font("Comic Sans MS", 0, 12));
         { // set up table/list for displaying queue
             courseList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
             courseList.setColumnSelectionAllowed(false);
             c.fill = GridBagConstraints.HORIZONTAL;
             c.weightx = 1.0;
             c.insets = new Insets(5, 5, 5, 5);
-            gridLayout.setConstraints(this.queueDialog.add(new JLabel("Namn")), c);
+            JLabel temp;
+            temp = new JLabel("Namn");
+            temp.setFont(new Font("Comic Sans MS", 0, 12));
+            gridLayout.setConstraints(this.queueDialog.add(temp), c);
             c.gridwidth = GridBagConstraints.REMAINDER;
             gridLayout.setConstraints(this.queueDialog.add(this.nameField = new JTextField(Utils.getFullName())), c);
-
+            nameField.setFont(new Font("Comic Sans MS", 0, 12));
             c.gridwidth = 1;
             c.gridheight = 2;
             c.weighty = 1.0;
-            gridLayout.setConstraints(this.queueDialog.add(new JLabel("Typ")), c);
+            temp = new JLabel("Typ");
+            temp.setFont(new Font("Comic Sans MS", 0, 12));
+            gridLayout.setConstraints(this.queueDialog.add(temp), c);
             ButtonGroup type = new ButtonGroup();
             this.helpButton = new JRadioButton("Hjälp", true);
+            helpButton.setFont(new Font("Comic Sans MS", 0, 12));
             this.examButton = new JRadioButton("Redovisning");
+            examButton.setFont(new Font("Comic Sans MS", 0, 12));
             type.add(this.helpButton);
             type.add(this.examButton);
             c.weighty = 0.0;
             c.gridwidth = 1;
             c.gridheight = 2;
             c.insets = new Insets(5, 5, 5, 5);
-            gridLayout.setConstraints(this.queueDialog.add(new JLabel("Plats")), c);
+            temp = new JLabel("Plats");
+            temp.setFont(new Font("Comic Sans MS", 0, 12));
+            gridLayout.setConstraints(this.queueDialog.add(temp), c);
             ButtonGroup place = new ButtonGroup();
             this.defaultHostButton = new JRadioButton("Använd datornamnet (" + Utils.getHost() + ")", true);
+            defaultHostButton.setFont(new Font("Comic Sans MS", 0, 12));
             this.customHostButton = new JRadioButton();
+            customHostButton.setFont(new Font("Comic Sans MS", 0, 12));
             place.add(this.defaultHostButton);
             place.add(this.customHostButton);
             c.weighty = 0.0;
             gridLayout.setConstraints(this.queueDialog.add(this.customHostButton), c);
             c.gridwidth = GridBagConstraints.REMAINDER;
             gridLayout.setConstraints(this.queueDialog.add(this.customHostField = new JTextField()), c);
-            
+            customHostField.setFont(new Font("Comic Sans MS", 0, 12));
             c.gridwidth = 1;
             c.insets = new Insets(5, 5, 5, 5);
-            gridLayout.setConstraints(this.queueDialog.add(new JLabel("Meddelande")), c);
+                        
+            temp = new JLabel("Meddelande");
+            temp.setFont(new Font("Comic Sans MS", 0, 12));
+            gridLayout.setConstraints(this.queueDialog.add(temp), c);
             c.gridwidth = GridBagConstraints.REMAINDER;
             gridLayout.setConstraints(this.queueDialog.add(this.messageField = new JTextField()), c);
-            
+            messageField.setFont(new Font("Comic Sans MS", 0, 12));
             defaultHostButton.addActionListener(new ActionListener() {
 
                 @Override
         { // create panel for queueing, logging out, removing from queue
             buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
             this.queueButton = new JButton("Ställ dig i kö");
-
+            this.queueButton.setFont(new Font("Comic Sans MS", 0, 12));
+            
             this.addToQueue = new ActionListener() {
                 @Override
                 public void actionPerformed(ActionEvent e) {
             buttonPanel.add(Box.createHorizontalGlue());
 
             JButton logout = new JButton("Logga ut");
+            logout.setFont(new Font("Comic Sans MS", 0, 12));
             logout.addActionListener(new ActionListener() {
                 @Override
                 public void actionPerformed(ActionEvent e) {

src/se/kth/csc/sima/SimaGUIWindow.java

         this.contentPane.add(label, BorderLayout.NORTH);
 
         this.courseList = new JList();
+        courseList.setFont(new Font("Comic Sans MS", 0, 12));
         this.courseList.addMouseListener(new MouseAdapter() {
             @Override
             public void mouseClicked(MouseEvent e) {