private void doSelection(int mode){
		clipboard.setSetting(setting);
		int mouseX1 = Math.min(mouseX, mouseInitX) - sequencePanel.getX();
		int mouseX2 = Math.max(mouseX, mouseInitX) - sequencePanel.getX();

		for(Component c : sequencePanel.getComponents()){
			if(c instanceof ActionPanelFX){
				ActionPanelFX panel = (ActionPanelFX)c;
				int x1 = panel.getX();
				int x2 = x1 + panel.getWidth();
				
				if(mouseX1 < x1 && mouseX2 > x1 || mouseX1 < x2 && mouseX2 > x2){
					if(mode == MODE_DELETE)
						clipboard.removeFromClipBoard(panel.getAction());
					else
						clipboard.addToClipboard(panel.getAction(), panel.getIndex());
				}else if(mode == MODE_NORMAL)
					clipboard.removeFromClipBoard(panel.getAction());
			}
		}
	}