package edu.drexel.tm.cs338.textacular;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import net.miginfocom.swing.MigLayout;

public class ProjectFrame extends JFrame {
	private JTabbedPane tabbedPane;
	
	private JPanel buttonsPanel;
	
	private JButton btnCompile;
	private JButton btnClear;
	
	private TemplatePanel[] panels = { new LetterPanel() };
	
	public ProjectFrame() {
		super("TeXtacular");

		tabbedPane = new JTabbedPane();
		addTabPanels();
		
		btnCompile = new JButton("Compile");
		btnClear = new JButton("Clear");
		
		buttonsPanel = new JPanel(new MigLayout());
		buttonsPanel.add(btnCompile);
		buttonsPanel.add(btnClear);
		
		add(tabbedPane);
		add(buttonsPanel, BorderLayout.SOUTH);
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(800, 600);
	}
	
	private void addTabPanels() {
		for (TemplatePanel panel : panels) {
			tabbedPane.add(panel.getTemplateName(), panel);
		}
	}
}

@@ -386,16 +386,45 @@
 nClear;%0A
+%09private JButton btnOptions;%0A
 %09%0A%09priva
@@ -654,16 +654,55 @@
 lear%22);%0A
+%09%09btnOptions = new JButton(%22Options%22);%0A
 %09%09%0A%09%09but
@@ -804,16 +804,62 @@
 Clear);%0A
+%09%09buttonsPanel.add(btnOptions, %22gapleft 30%22);%0A
 %09%09%0A%09%09add

Add Options button