Click here to Skip to main content
       

Java

 
QuestionHow to create/set an element of a document Pinmemberprithaa6-Nov-12 4:43 
Hello,
 
I have a code like this
public class Doc extends DefaultStyledDocument{
}
 
 
Doc doc= new Doc();
doc.insertString(0, "This is a working document", null);
AbstractDocument.AbstractElement rootElement = doc.createDefaultRoot(); 
 

Once I create a root element how do I assign or set its value from the doc string.Currently the element is blank.
 
thnaks
Pritha
AnswerRe: How to create/set an element of a document Pinmemberpadmanabanproject7-Nov-12 20:58 
GeneralRe: How to create/set an element of a document Pinmemberprithaa4-Dec-12 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 17 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid