@Override
		public void actionPerformed(ActionEvent e) 
		{
			Object parent = e.getSource();

			if (parent instanceof JMenuItem)
			{
				JMenuItem button = (JMenuItem) parent;
				String name = button.getText ();

				if (name.equals("New Game"))
				{
					GraphicUI.this.reset ();					
				}
				else if (name.equals ("Developer Console"))
				{
					if (!consoleIsOpen)
					{
						GraphicUI.this.setTitle("Opening Console...");
						board.c = new ShogiConsole (GraphicUI.this, "Console", 640, 535);
						board.log = true;
						consoleIsOpen = true;
						GraphicUI.this.setTitle("Shogi");
					}
					else
						board.c._input.requestFocus();
				}
				else if (name.equals("Exit"))
				{					
					GraphicUI.this.close ();
				}
				else if (name.equals ("User's Guide"))
				{
					String message = "You can find the user's guide at:\n";
					message += "                        /UsersGuideMark2.odt\n";
					message += "                        /UsersGuideMark2.pdf\n";
					message += "It doesn't matter which file you choose. They're the same thing.\n";
					JOptionPane.showMessageDialog(GraphicUI.this, message, 
							"Ceci n'est pas un User's Guide", JOptionPane.INFORMATION_MESSAGE);					
				}
				else if (name.equals("Javadoc"))
				{
					String message = "You can find the documentation for this program at:\n";
					message += "                        /doc/index.html";
					JOptionPane.showMessageDialog(GraphicUI.this, message, 
							"Ceci n'est pas un Javadoc", JOptionPane.INFORMATION_MESSAGE);	
				}
				else if (name.equals("About"))
				{
					String message = "Shogi version 2013.11.18\n";					
					message += "Program by: Dmitry Andreevich Paramonov\n";
					message += "                        Jiayin Huang\n";
					JOptionPane.showMessageDialog(GraphicUI.this, message, "About", JOptionPane.PLAIN_MESSAGE);			
				}
			}			
		}