public void openDevice(int index) { // Opens the device takes in index you
										// want to use
		deviceIndex = index; // Sets the index to the parameter

		try { // beginning of a try catch block
			captor = JpcapCaptor.openDevice(devices[index], 1028, false, 20); // Opens
																				// the
																				// selected
																				// device
		} catch (IOException e) { // catches an input output error
			// TODO Auto-generated catch block
			e.printStackTrace(); // prints the throwable
		}
		if (filter != null) {

			try {
				captor.setFilter(filter, true);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}