public void exportClass() {

		//Check if there is any diagram objects to export
		if (vod.size() == 0) {

			//If not, display error message box
			JOptionPane.showMessageDialog(null, "No information available to export", "UMLator | Export Error", JOptionPane.ERROR_MESSAGE);

		} else { //Otherwise..

			//Display save dialog (Directories only)
			fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
			int returnVal = fc.showSaveDialog(null);

			//Check if user has approved save
			if (returnVal == JFileChooser.APPROVE_OPTION) {

				//Loop through entire VectorOfDrawables
				for (int i = 0; i < vod.size(); i++) {

					//Obtain all instances of ClassDiag objects in VectorOfDrawables
					if (vod.get(i).getData() instanceof ClassDiagData) {

						//Load new ClassDiagData object with data from ClassDiagData object in VectorOfDrawables
						ClassDiagData d = (ClassDiagData) vod.get(i).getData();

						//Obtain all methods, variables and associated variables from data object
						ArrayList<String> opList = d.getMethods();
						ArrayList<String> varList = d.getInstanceVariables();
						ArrayList<String> asocVarList = d.getAssocInstanceVariables();

						try {

							//Set selected file path
							String fileDir = fc.getSelectedFile().getAbsolutePath();

							//Call to CodeExport to export convert and export Java code
							cEX.printOut(fileDir, varList.size(), opList.size(), asocVarList.size(), d.getClassName(), varList, opList, asocVarList);

							//Display message to use in status bar in UMLFrame
							setStatus("Java Export Complete");

							//Display message box confirming export
							JOptionPane.showMessageDialog(new JFrame(), "Java Exported Successfully", "UMLator | Code Export", JOptionPane.INFORMATION_MESSAGE);

						} catch (ArrayIndexOutOfBoundsException aI) {

							JOptionPane.showMessageDialog(new JFrame(), "Java Exported Failed - " + aI, "UMLator | Code Export", JOptionPane.ERROR_MESSAGE);
							setStatus("WARNING - IO Error");

						} catch (NullPointerException nP) {

							JOptionPane.showMessageDialog(new JFrame(), "Java Exported Failed - " + nP, "UMLator | Code Export", JOptionPane.ERROR_MESSAGE);
							setStatus("WARNING - IO Error");

						} catch (Exception e) {

							JOptionPane.showMessageDialog(new JFrame(), "Java Exported Failed - " + e, "UMLator | Code Export", JOptionPane.ERROR_MESSAGE);
							setStatus("WARNING - IO Error");

						}
					}

				}
			}
		}
	}