Save « Text Input « Java Swing Q&A





1. File Open/Save Operations in Swing Editor    coderanch.com

I have build using swing a text editor with menu's. Now what i want is to open/save the files. For this purpose, I have used JFileChooser class dialogue and it's working fine. And now I have to perform open/save functions in it. Would anybody help me or suggest me any example related to the above issue. Thanks/kind regards Rashid Ali

2. How can I save htmldocument with and without tags?    coderanch.com

I have a JTextPane which allows user to change text font, text style and text color. When I call myTextPane.getText(), it returns a nice html file with all the tags. But when I try to save it as a plain text file, it looks like there is no easy to do it. I mean I can remove all the tags by ...