package simogl.gui;

import org.jdesktop.layout.GroupLayout;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class RightMenuContainerPanel extends javax.swing.JPanel 
{	
	private BuildingSelectionPanel buildSelecPanel = null;
	private InfoPanel infoPanel = null;
	private ResourcePanel resourcePanel;
	private BalancePanel balancePanel = null;
	
	/**
	 * Creates the menu container panel that is located on the right side of
	 * the game scrreen
	 *
	 */
	public RightMenuContainerPanel() 
	{		
		{
			resourcePanel = new ResourcePanel();
		}
		this.setFocusable(false);
		// set layout
		GroupLayout thisLayout = new GroupLayout(this);
		this.setLayout(thisLayout);
		this.setPreferredSize(new java.awt.Dimension(206, 553));

		this.buildSelecPanel = new BuildingSelectionPanel();

		this.balancePanel = new BalancePanel();

		this.infoPanel = new InfoPanel();
		thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
		    .addContainerGap()
		    .add(thisLayout.createParallelGroup()
		        .add(GroupLayout.LEADING, buildSelecPanel, GroupLayout.PREFERRED_SIZE, 182, GroupLayout.PREFERRED_SIZE)
		        .add(GroupLayout.LEADING, balancePanel, GroupLayout.PREFERRED_SIZE, 182, GroupLayout.PREFERRED_SIZE)
		        .add(GroupLayout.LEADING, infoPanel, GroupLayout.PREFERRED_SIZE, 182, GroupLayout.PREFERRED_SIZE)
		        .add(GroupLayout.LEADING, resourcePanel, GroupLayout.PREFERRED_SIZE, 183, GroupLayout.PREFERRED_SIZE))
		    .addContainerGap());
		thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
		    .add(buildSelecPanel)
		    .add(19)
		    .add(balancePanel, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
		    .add(12)
		    .add(infoPanel, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
		    .add(15)
		    .add(resourcePanel, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)
		    .addContainerGap());
	}
}
