private void createContents(final Shell shell) { //Creates the box contents
		// Creates the box contents
		int lineSpace = 20; //Space between lines
		int horizMargin = 5; //Horizontal margin
		int vertMargin = 5; //Vertical margin
		int bottomMargin = 6; //Bottom margin
		int interSpace = 20; //Space between boxes
		
		int tab1 = 25; //First tab distance
		int tab2 = 75; //Second tab distance
		
		FormLayout layout = new FormLayout(); // Creates a form layout variable
												// named layout
		layout.marginHeight = vertMargin; // Sets the layout's margin height to five
		layout.marginWidth = horizMargin; // Sets the layout margin width to five
		shell.setLayout(layout); //Sets the layout

		// Show the next to the textbox
		Label hostLabel = new Label(shell, SWT.NONE);
		hostLabel.setText("Target Host: ");
		FormData data = new FormData(); // Similar to formlayout's formdata
		data.top = new FormAttachment(0, vertMargin); //Sets the top part of the label
		hostLabel.setLayoutData(data); // Sets the formlayout to the gridData

		// Display the input box
		final Text hostText = new Text(shell, SWT.BORDER); // Sets the textbox
		data = new FormData(); // Fills the unused horizontal space
		data.left = new FormAttachment(hostLabel, interSpace);
		data.top = new FormAttachment(0, vertMargin);
		data.right = new FormAttachment(tab2,0);
		hostText.setLayoutData(data); // Sets the button

		// Show the next to the textbox
		Label gateLabel = new Label(shell, SWT.NONE);
		gateLabel.setText("Default Gateway: ");
		data = new FormData(); // Similar to formlayout's formdata
		data.left = new FormAttachment(0,0);
		//data.right = new FormAttachment(tab2,0);
		data.top = new FormAttachment(hostLabel, lineSpace);
		gateLabel.setLayoutData(data); // Sets the formlayout to the gridData

		final Text gateText = new Text(shell, SWT.BORDER); // Sets the textbox
		data = new FormData(); // Fills the unused horizontal space
		data.left = new FormAttachment(gateLabel, interSpace);
		data.top = new FormAttachment(hostText, bottomMargin);
		data.right = new FormAttachment(tab2, 0);
		gateText.setLayoutData(data); // Sets the button

		Label readMenuLabel = new Label(shell, SWT.NONE);
		readMenuLabel.setText("Read Interface: ");
		data = new FormData(); // Similar to formlayout's formdata
		data.top = new FormAttachment(gateLabel, lineSpace);
		data.left = new FormAttachment(0,0);
		readMenuLabel.setLayoutData(data); // Sets the formlayout to the
											// gridData

		Menu readMenu = new Menu(shell, SWT.BAR);

		Combo readCombo = new Combo(shell, SWT.DROP_DOWN);
		readCombo.setItems(this.Interface2StringArray(devices));
		data = new FormData(); // Similar to formlayout's formdata
		data.top = new FormAttachment(gateText, bottomMargin);
		data.left = new FormAttachment(readMenuLabel, 5);
		readCombo.setLayoutData(data);
		shell.setMenuBar(readMenu);

		Label writeMenuLabel = new Label(shell, SWT.NONE);
		writeMenuLabel.setText("Write Interface: ");
		data = new FormData(); // Similar to formlayout's formdata
		data.top = new FormAttachment(readMenuLabel, lineSpace);
		writeMenuLabel.setLayoutData(data); // Sets the formlayout to the
											// gridData

		Menu writeMenu = new Menu(shell, SWT.BAR);

		Combo writeCombo = new Combo(shell, SWT.DROP_DOWN);
		writeCombo.setItems(this.Interface2StringArray(devices));
		data = new FormData(); // Similar to formlayout's formdata
		data.top = new FormAttachment(readCombo, bottomMargin);
		data.left = new FormAttachment(writeMenuLabel, 5);
		writeCombo.setLayoutData(data);
		shell.setMenuBar(writeMenu);
		
		final Button locks = new Button(shell, SWT.PUSH);
		data = new FormData();
		data.left = new FormAttachment(readCombo, lineSpace);
		data.top = new FormAttachment(tab1, 0);
		locks.setImage(getUnlockedLock());
		isLocked = false;
		locks.setLayoutData(data);
		locks.addListener(SWT.MouseUp, new Listener() {
			
			public void handleEvent(Event e) {
				
				switch (e.type) { //Switch statement for the event types
				case SWT.MouseUp: if(isLocked == false) {
					locks.setImage(getLockedLock());
					isLocked = true;
				} else {
					locks.setImage(getUnlockedLock());
					isLocked = false;
				}
				break;
			}
		}
	});
		Button start = new Button(shell, SWT.PUSH);
		start.setText("Start");
		data = new FormData();
		data.top = new FormAttachment(writeMenuLabel, lineSpace);
		data.left = new FormAttachment(0, 80);
		start.setLayoutData(data);

		// Create the Stop button and add a handler
		// so that pressing it will set input to null
		Button forward = new Button(shell, SWT.PUSH);
		forward.setText("Relay/Drop");
		data = new FormData();
		data.top = new FormAttachment(writeMenuLabel, lineSpace);
		data.left = new FormAttachment(start, 5);
		forward.setLayoutData(data);

		// Set the OK button as the default, so
		// user can type input and press Enter
		// to dismiss

		// Creates a bar menu (dropdown)
	}