private void OpenActionPerformed(
			final java.awt.event.ActionEvent evt) {

		int returnVal = fileChooser.showOpenDialog(this);
		if (returnVal == JFileChooser.APPROVE_OPTION) {
			// Init TextArea to ""
			jTextArea1.setText("");
			jTextArea2.setText("");
			// Catch the current file path
			path = fileChooser.getSelectedFile().toString();
			path = path.replace("\\", "/");
			File file = fileChooser.getSelectedFile();
			try {
				input = Methods.getFileAsString(path);

			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			if (file.getAbsolutePath().endsWith(".xml")) {
				jTextArea1.setText(input);
				try {
					JDOMConverter jdc = new JDOMConverter(path);
					jdc.convert();
					output = jdc.toString(2);
					jTextArea2.setText(output);
				} catch (Exception e) {
					e.printStackTrace();
				}
			} else if (file.getAbsolutePath().endsWith(".json")) {
				jTextArea2.setText(input);
				try {
					JSONConverter jsc = new JSONConverter(path);
					jsc.convert();
					output = jsc.toString(2);
					/*output = converterToXML.convertToXML(
							path, false);*/
					jTextArea1.setText(output);
				} catch (Exception e) {
					e.printStackTrace();
				}
			} else {
				jTextArea1.setText("Select a XML file");
				jTextArea2.setText("Select a JSON file");
			}
		} else {
			System.out.println("File access cancelled by user.");
		}
	}