private void openSerialPort() {
		Boolean foundPort = false;

		 //Ist schon ein Port geoeffnet wird nichts gemacht
		 if (serialPortOpen != false) {
		 System.out.println("Serialport already opened");
		 return;
		 }
		 
		 String selectedPort = (String) comPortComboBox.getSelectedItem();
		 
		 if(!selectedPort.contentEquals("Select port")){
			 
			 System.out.println("Open serialport");
			 
			 try {
				 // get COM Port Identifier
				 CommPortIdentifier commPortID = CommPortIdentifier.getPortIdentifier(selectedPort);
				
				 // open COM Port
				 serialPort = (SerialPort) commPortID.open("serial " + selectedPort, 2000);
				
				 // SerialSend und SerialReceive erzeugen
				 serialSend = new SerialSend(serialPort, this);
				 serialRecv = new SerialRecv(serialPort, this);
				 
				 Map<String, Integer> serialConfigurationMap = getConfigurationMap();
				 
//				 System.out.println(Integer.parseInt((String) baudrateComboBox.getSelectedItem()));
//				 System.out.println((String) dataBitsComboBox.getSelectedItem());
//				 System.out.println((String) stopBitComboBox.getSelectedItem());
//				 System.out.println((String) parityBitComboBox.getSelectedItem());
				 
				
				 serialPort.setSerialPortParams(Integer.parseInt((String) baudrateComboBox.getSelectedItem()) ,
				 serialConfigurationMap.get((String) dataBitsComboBox.getSelectedItem()),
				 serialConfigurationMap.get((String) stopBitComboBox.getSelectedItem()),
				 serialConfigurationMap.get((String) parityBitComboBox.getSelectedItem()));
				 serialPort.addEventListener(serialRecv);
				 serialPort.notifyOnBreakInterrupt(false);
				 serialPort.notifyOnCarrierDetect(false);
				 serialPort.notifyOnCTS(false);
				 serialPort.notifyOnDataAvailable(true);
				 serialPort.notifyOnDSR(false);
				 serialPort.notifyOnFramingError(false);
				 serialPort.notifyOnOutputEmpty(false);
				 serialPort.notifyOnOverrunError(false);
				 serialPort.notifyOnParityError(false);
				 serialPort.notifyOnRingIndicator(false);
				
				 } catch (NoSuchPortException e) {
				 e.printStackTrace();
				 } catch (PortInUseException e) {
				 e.printStackTrace();
				 } catch (Exception e) {
				 e.printStackTrace();
				 }

				serialPortOpen = true;
		 }
		 else{
			 System.out.println("Please select a port");
		 }
		

	}