package com.future.panels;

import javax.swing.JPanel;

public class PanelFactory {
	public static JPanel createPanel(String name)
	{
		JPanel panel;
		if(name.equals("SettingPanel"))
		{
			panel=new SettingPanel();
		}else
		{
			panel=new MainPanel();
		}
		return panel;
	}
}
