Can anybody give me any idea, if i can store a text attribute (like bold, italic etc) modified in JEditorPane in MSSQL SERVER Database?
The user should be able to modify the text attribute, then store that in DB and again retrieve them from DB when in need, in the same attribute style.
Can anybody give me any idea, if i can store a text attribute (like
Share
You have to define proper EditorKit. E.g.
HTMLEditorKitwill allow you to store text as HTML with all styles info. Just use getText() and setText() to work with formatted content.ALternatively you can write own Reader/Writer see for exmple http://java-sl.com/editor_kit_tutorial_reader_writer.html