public void setup(String title) {
mainFrame = new JFrame(title);
mainFrame.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
//create mainPanel with BorderLayout
mainPanel = new JPanel(new BorderLayout(0,0));
//create toolbarMenu
mainPanel.add(setupToolbar(),BorderLayout.NORTH);
//create cardPanel and add Cards
cardPanel = new JPanel(new CardLayout());
for (CardController c: cc) {
c.initCard(cardPanel);
}//for
//add cardPanel
mainPanel.add(cardPanel,BorderLayout.CENTER);
//create statusbarPanel
mainPanel.add(setupStatusbar(),BorderLayout.SOUTH);
mainFrame.add(mainPanel);
//create menubar
mainFrame.setJMenuBar(setupMenubar());
mainFrame.pack();
}//init