public void Delete(JTextArea txtArea) {

		int pocetak = txtArea.getSelectionStart();
		int kraj = txtArea.getSelectionEnd();
		String preText = txtArea.getText().substring(0, pocetak);
		String posleText =txtArea.getText().substring(kraj,
				txtArea.getText().length());

		txtArea.setText(preText + posleText);
	}