public void updateScrollPane(int points, int dimensions, ArrayList<String> savedPoints)
	{
		pointPanel.removeAll();
		((GridLayout)pointPanel.getLayout()).setRows(points+1);
		((GridLayout)pointPanel.getLayout()).setColumns(dimensions);
		for(int i = 0; i < dimensions; i++)
		{
			JLabel jL = new JLabel("D" + (i+1));
			jL.setHorizontalAlignment(JLabel.CENTER);
			pointPanel.add(jL);
		}

		if(savedPoints == null)
		{
			for(int i = 0; i < points; i++)
			{
				for(int j = 0; j < dimensions; j++)
				{
					pointPanel.add(new JTextField("0.0"));
				}
			}
		}
		else
		{
			int index = 0;
			for(int i = 0; i < points; i++)
			{
				for(int j = 0; j < dimensions; j++)
				{
					try { pointPanel.add(new JTextField(savedPoints.get(index++))); }
					catch (Exception e) { pointPanel.add(new JTextField("0.0")); }
				}
			}
		}

		revalidate();
		repaint();
		pointScrollPane.getVerticalScrollBar().setValue(pointScrollPane.getVerticalScrollBar().getMaximum());
	}