package edu.drexel.tm.cs338.textacular;

import javax.swing.JFrame;

public class ProjectFrame extends JFrame {
	public ProjectFrame() {
		super("TeXtacular");
		
		add(new LetterPanel());
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(800, 600);
	}
}

@@ -49,67 +49,409 @@
 java
-x.swing.JFrame;%0A%0Apublic class ProjectFrame extends JFrame %7B
+.awt.BorderLayout;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JTabbedPane;%0A%0Aimport net.miginfocom.swing.MigLayout;%0A%0Apublic class ProjectFrame extends JFrame %7B%0A%09private JTabbedPane tabbedPane;%0A%09%0A%09private JPanel buttonsPanel;%0A%09%0A%09private JButton btnCompile;%0A%09private JButton btnClear;%0A%09%0A%09private TemplatePanel%5B%5D panels = %7B new LetterPanel() %7D;%0A%09
 %0A%09pu
@@ -499,110 +499,515 @@
 %22);%0A
+%0A
 %09%09
-%0A%09%09add(new LetterPanel());%0A%09%09%0A%09%09setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A%09%09setSize(800, 600);
+tabbedPane = new JTabbedPane();%0A%09%09addTabPanels();%0A%09%09%0A%09%09btnCompile = new JButton(%22Compile%22);%0A%09%09btnClear = new JButton(%22Clear%22);%0A%09%09%0A%09%09buttonsPanel = new JPanel(new MigLayout());%0A%09%09buttonsPanel.add(btnCompile);%0A%09%09buttonsPanel.add(btnClear);%0A%09%09%0A%09%09add(tabbedPane);%0A%09%09add(buttonsPanel, BorderLayout.SOUTH);%0A%09%09%0A%09%09setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A%09%09setSize(800, 600);%0A%09%7D%0A%09%0A%09private void addTabPanels() %7B%0A%09%09for (TemplatePanel panel : panels) %7B%0A%09%09%09tabbedPane.add(panel.getTemplateName(), panel);%0A%09%09%7D
 %0A%09%7D%0A

Add JTabbedPane and button panel to main frame