public void actionPerformed(ActionEvent e)
{
	if(e.getSource() == btnOK)
	{
		String strLinkName = txtLinkName.getText();
		strLinkName = strLinkName.trim();
		if(!strLinkName.equals(""))
		{			
			wasOkPressed = true;
			//this.hide();
                        this.setVisible(false);
		}
		else
		{
			// Pop up message box because the link name field is empty 
			JOptionPane.showInternalMessageDialog(this.getContentPane(), 
								 "Link Name can not be empty", "Link Name Error", 
								 JOptionPane.WARNING_MESSAGE);
		}								
	}
	
	if(e.getSource() == btnCancel)
	{
		this.dispose();
	}
	
}