public void actionPerformed(ActionEvent e)
			{
			if (e.getSource() == left)
				{
				halign = Alignment.LEFT;
				return;
				}
			if (e.getSource() == center)
				{
				halign = Alignment.CENTER;
				return;
				}
			if (e.getSource() == right)
				{
				halign = Alignment.RIGHT;
				return;
				}
			if (e.getSource() == top)
				{
				valign = Alignment.TOP;
				return;
				}
			if (e.getSource() == middle)
				{
				valign = Alignment.MIDDLE;
				return;
				}
			if (e.getSource() == bottom)
				{
				valign = Alignment.BOTTOM;
				return;
				}
			if (e.getSource() == fButton)
				{
				Font newFont = FontDialog.getFont(font);
				
				if (newFont == null)
					return;
				
				font = newFont;
				fButton.setFont(font);
				}
			}