/** Sets the selection back to move/select. */ private void resetSelectMove() { JToggleButton selectButton = getButtonForType(selectType); if (!(selectButton.isSelected())) { selectButton.doClick(); selectButton.requestFocus(); } }