So i am in the process of writing a GUI based app that has multiple jTextField and jTextArea inputs that i wish to put in specific places in 4 separate .rtf files. I have essentially completed the gui, and am now attempting to implement the read file, search file, replace/insert text, write/print file aspects of the app... it is here that i have hit a creative wall (most certainly attributed to my newbness). after many hours of googling and examining much source code i have decided to visit a forum and ask for some guidance. first and foremost, would you all recommend the usage of RTFEditorKit? if so, how would i implement the search and replace feature? i was thinking that in the template .rtfs i would essentially put a code
word in each place that had an input coming in to replace it, search for that code word, and then finally replace it with the user input. i hope this is all understandable... thanks for your time!
edit: i'd love to do a similar thing with .doc if that was easier... i have read about apache poi, but wonder if this would be doable... let me know what you think