private void showFile(File file){
		BufferedReader infile = null; // declare buffered stream
		
		// get file name from the text field
		String inLine;
		
		jtfFile.setText(file.getName());
		
		try {
			// create a buffered stream
			infile = new BufferedReader(new FileReader(file));
			
			// read a line
			inLine = infile.readLine();
			
			boolean firstLine = true;
			
			// append the line to the text area
			while (inLine != null){
				if (firstLine){
					firstLine = false;
					jtaFileContent.append(inLine);
				} else {
					jtaFileContent.append("\n" + inLine);
				}
				
				inLine = infile.readLine();
			}
			
		} catch (FileNotFoundException ex){
			System.out.println("File not found:" + file.getName());
		} catch (IOException ex){
			System.out.println(ex.getMessage());
		} finally {
			try {
				if (infile != null) infile.close();
			} catch (IOException ex){
				
			}
		}
	}