sorry folks I should've elaborated more, this is my problem:
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 when they push a button and i want to prompt them for the nam开发者_如何学Goe of the file, this is my problem?!?! Any ideas? Thanks
Use a JFileChooser (see the example in the javadoc)
精彩评论