import javax.swing.*;

public class MToolBar extends JToolBar
{
	MNewButton m;

	MainFrame oParent;

	MToolBar(MainFrame parent)
	{
		super();

		oParent = parent;

		JTabbedPane jtp = new JTabbedPane(SwingConstants.TOP);

		jtp.addTab("Standard", null, getPanelStd(), "Click For standard tool bar.");
		//jtp.addTab("Main", null, getPanelTmpl(), "Click to set properties for Trace.");
		//jtp.addTab("Template", null, getPanelApp(), "Click to set properties for Trace.");

		add(jtp);
	}

	private JPanel getPanelStd()
	{
		JPanel pnl = new JPanel();

		m = new MNewButton();
		m.addActionListener(oParent);
		pnl.add(m);

		return pnl;
	}

	private JPanel getPanelTmpl()
	{
		//will do smthg
		return null;
	}

	private JPanel getPanelApp()
	{
		//will do smthg
		return null;
	}
}