This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I wrote a porgam where there is a textarea and two buttons ,one to load files into the textarea and other button to save what is written in the text area.
I have two problems though
1)The methods filedialog.getDirectory(),filedialog.getFile() return nulll so i am not able to load any file in the text area
2)When i try to save a file ,i used filedialog.setDirectory("C:"+"\" ") and filedialog.setFile("untitled.txt").The problem is it doesnt show the c:\ as the default directory when the dialog box opens .