/**
 * Traq desktop application.
 *
 * @author Jack Polgar <jack@polgar.id.au>
 * @license Apache-2.0
 */

import javax.swing.*;
import traq.models.Project;

/**
 * Main application.
 */
public class Traq {
    /**
     * Set to create main window.
     */
    public static void main(String args[]) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                JFrame mainWindow = new JFrame("Traq");
                mainWindow.setSize(600,500);
                mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                Project testProject = new Project(0, "Test", "testing", "Just a test");

                JPanel testPanel = new JPanel();
                JLabel projectName = new JLabel(testProject.getName());
                JLabel projectSlug = new JLabel(testProject.getSlug());
                JLabel projectDescription = new JLabel(testProject.getDescription());

                testPanel.add(projectName);
                testPanel.add(projectSlug);
                testPanel.add(projectDescription);

                mainWindow.add(testPanel);

                mainWindow.setVisible(true);
            }
        });
    }
}

@@ -122,16 +122,46 @@
 wing.*;%0A
+%0Aimport java.util.ArrayList;%0A%0A
 import t
@@ -179,16 +179,41 @@
 Project;
+%0Aimport traq.models.Site;
 %0A%0A/**%0A *
@@ -653,77 +653,195 @@
     
-Project testProject = new Project(0, %22Test%22, %22testing%22, %22Just a test%22
+Site currentSite = new Site(%22Traq%22, %22https://bugs.traq.io%22);%0A%0A                ArrayList%3CProject%3E projects = currentSite.getProjects();%0A                Project testProject = projects.get(0
 );%0A%0A

Use the API to fetch projects.