Package com.andrewnatoli.jbug.controlpanel.project

Examples of com.andrewnatoli.jbug.controlpanel.project.ProjectModel


    private String project_name;
    private String issue_date;

    public OverviewIssueComponent(int issue_id) {
        final IssueModel issue = new IssueModel(issue_id);
        ProjectModel project = new ProjectModel(issue.getProject_id());
        setMaximumSize(new Dimension(500, 75));
        setLayout(new BorderLayout());

        setBorder(BorderFactory.createTitledBorder(issue.getDate_created() + " - " + project.getTitle()));
        String title = issue.getTitle();
        if(title.length() > 80) {
            title = title.substring(0,80) + "... ";
        }
        lbl_title = new JLabel(title);
View Full Code Here


        try {
            Statement getProjects = Database.conn.createStatement();
            ResultSet rs = getProjects.executeQuery(q);
            while(rs.next()) {
                System.out.println("[ControlPanelModel->getUserProjects] Adding project #" + rs.getInt("project_id"));
                projects.add(new ProjectModel(rs.getInt("project_id")));
            }
            getProjects.close();
        }
        catch(SQLException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.andrewnatoli.jbug.controlpanel.project.ProjectModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.