@Override
	public void setMemoryAllocation(int[] memory) {
		DefaultTableModel mdlMemory = new DefaultTableModel();
		if (memory != null && memory.length > 0) {
			for(int i = 0; i < memory.length; i++) {
				if (memory[i] > -1) { //If value is -1 then leave it blank
					mdlMemory.addColumn(i, new Object[]{memory[i]});
				} else {
					mdlMemory.addColumn(i, new Object[]{""});
				}
			}
		} else {
			for (int i = 0; i < 1024; i++) {
				mdlMemory.addColumn(i, new Object[]{""});
			}
		}
		tblMemory.setModel(mdlMemory);
	}