src/main/java/com/mxgraph/swing/mxGraphComponent.java
protected void installDoubleClickHandler()
	{
		graphControl.addMouseListener(new MouseAdapter()
		{
			public void mouseReleased(MouseEvent e)
			{
				if (isEnabled())
				{
					if (!e.isConsumed() && isEditEvent(e))
					{
						Object cell = getCellAt(e.getX(), e.getY(), false);

						if (cell != null && getGraph().isCellEditable(cell))
						{
							startEditingAtCell(cell, e);
						}
					}
					else
					{
						// Other languages use focus traversal here, in Java
						// we explicitely stop editing after a click elsewhere
						stopEditing(!invokesStopCellEditing);
					}
				}
			}

		});
	}
/**
	 * Adds handling of edit and stop-edit events after all other handlers have
	 * been installed.
	 */
Adds handling of edit and stop-edit events after all other handlers have
been installed.
Adds handling of edit and stop - edit events after all other handlers have been installed .
protected void installDoubleClickHandler()
	{
		graphControl.addMouseListener(new MouseAdapter()
		{
			public void mouseReleased(MouseEvent e)
			{
				if (isEnabled())
				{
					if (!e.isConsumed() && isEditEvent(e))
					{
						Object cell = getCellAt(e.getX(), e.getY(), false);
						if (cell != null && getGraph().isCellEditable(cell))
						{
							startEditingAtCell(cell, e);
						}
					}
					else
					{
						stopEditing(!invokesStopCellEditing);
					}
				}
			}
		});
	}
protected void installDoubleClickHandler ( ) { graphControl . addMouseListener ( new MouseAdapter ( ) { public void mouseReleased ( MouseEvent e ) { if ( isEnabled ( ) ) { if ( ! e . isConsumed ( ) && isEditEvent ( e ) ) { Object cell = getCellAt ( e . getX ( ) , e . getY ( ) , false ) ; if ( cell != null && getGraph ( ) . isCellEditable ( cell ) ) { startEditingAtCell ( cell , e ) ; } } else { stopEditing ( ! invokesStopCellEditing ) ; } } } } ) ; }
Adds handling of edit and stop-edit events after all other handlers have
 been installed.
Adds handling of edit and stop - edit events after all other handlers have been installed .
// Other languages use focus traversal here, in Java // we explicitely stop editing after a click elsewhere