Skip to content

edwardjan/MainViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

package GUI;

public class MainViewer extends javax.swing.JFrame { ProjectViewer pv; MemberViewer mv;

public MainViewer()
{
    initComponents();
    displayProjects();
}

public void displayProjects()
{
    pv  = new ProjectViewer();
    this.add(pv);
    if(mv != null)
    {
        this.remove(mv);
    }
    pv.setMainViewer(this);
}

public void displayMembers(int ID, String CommonName, String ProjectName, String Manager)
{
    mv = new MemberViewer(ID, CommonName, ProjectName, Manager);
    this.add(mv);
    this.remove(pv);
    mv.setMainViewer(this);
}

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">                          
private void initComponents() {

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setMinimumSize(new java.awt.Dimension(950, 500));
    setResizable(false);
    getContentPane().setLayout(new java.awt.CardLayout());

    pack();
    setLocationRelativeTo(null);
}// </editor-fold>                        

// Variables declaration - do not modify                     
// End of variables declaration                   

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published