Hi Everyone,

I have a very simple newbie question. I have a method that opens a JFileChooser window where a user can select a file for processing. The method works fine the first time the method is called but it will not be visible the next time the method is called.

Here is a copy of the method.
Java Code:
	private static String openMyFile(String myCaption) {

		JFileChooser window = new JFileChooser();
		FileFilter DocxFilter = new FileNameExtensionFilter("Docx Files", "docx");
		int returnedValue = window.showOpenDialog(null);
		if(returnedValue!=JFileChooser.APPROVE_OPTION) {	//Check to see if the user clicked the open button
		return window.getSelectedFile().getPath();