CommandManager.getInstance().execute("RepaintWorkspace");
public void actionPerformed(ActionEvent event){	String action = event.getActionCommand();		if(action.equals(changeTextString))		showChangeTextDialog();			else if(action.equals(changeFontString))	{        FontSelector demoFont = new FontSelector();		demoFont.setFont(getFont());		demoFont.getDisplayPanel().setDisplayText(getDescription());		demoFont.getDisplayPanel().setForeground(getColor());		demoFont.getDisplayPanel().setBackground(Constants.BACKGROUND_COLOR);				JOptionPane optionPane = new JOptionPane(demoFont, JOptionPane.PLAIN_MESSAGE,			JOptionPane.OK_CANCEL_OPTION);		optionPane.setPreferredSize(new Dimension(480, 172));		JDialog dialog = optionPane.createDialog(VisualDCT.getInstance(),			"Select a Font, Font Style, and Font Size...");		dialog.show();				Object selectedValue = optionPane.getValue();				if((selectedValue != null) && (selectedValue instanceof Integer)			&& (((Integer)selectedValue).intValue() == JOptionPane.OK_OPTION))		{			setFont(demoFont.getFont());		}					CommandManager.getInstance().execute("RepaintWorkspace");	}	else if(action.equals(colorString))	{		Color newColor = JColorChooser.showDialog(null, colorTitleString, getColor());				if(newColor != null)		{			setColor(newColor);							currentColor = newColor;		}				CommandManager.getInstance().execute("RepaintWorkspace");	}	else if(action.equals(borderString))	{		border = !border;		currentBorder = border;				CommandManager.getInstance().execute("RepaintWorkspace");	}}