Save a java source code to a file?
<p>I'm having a problem to save my java source code to a file, I want to prompt the user for the name of the java source file and then write java source code to that file.
let me elaborate more,
I have created a simple bean builder tool to allow users to add components like JLable or JButton or other components to a design palette and they can customize the properties of the added components as i have created the means to, now they want to save the source code of that to a file and i want to ask them for the name of the file, this is my problem?!?! 
Any ideas will be appreciated.</p>
