public void actionPerformed(ActionEvent e)
	{
		Component[] clist = ckb.list.getComponents();
		
		if(e.getActionCommand().equalsIgnoreCase("Save Portfolio"))
		{
			Double weight[] = new Double[clist.length/2];

			for (int i = 0; i < clist.length; i++)
			{
				if (i%2 == 1)
				{
					WeightSlider slide = (WeightSlider) clist[i];
					weight[i/2] = new Double(slide.getValue());
					weight[i/2] = weight[i/2]/1000.0;
				}
			}
		
			user_p = new Portfolio();
			user_p.setWeights(weight);
			user_p.normalizeWeight();
		
			for (int i = 0; i < clist.length; i++)
			{
				if (i%2 == 1)
				{
					Double value;
					WeightSlider slide = (WeightSlider) clist[i];
					value = user_p.getWeightByIndex(i/2) * 1000;

					slide.setValue(value.intValue());
				}
			}
			
			mcc.newUserTrader(user_p);
		}
		else
		{
			for (int i = 0; i < clist.length; i++)
			{
				if (i%2 == 1)
				{
					WeightSlider slide = (WeightSlider) clist[i];
					slide.setValue(0);
				}
			}
			user_p = new Portfolio();
		}
		
	}