Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

HTML Editor

  Asked By: Cesar    Date: Oct 20    Category: Java    Views: 654
  

I am working on project that involved lots of HTML Editor
functionality.now i got problem in assign paragraph attribute,when i
tried for following
Element p=html_doc.getParagraphElement(pos);
MuatableAttributeSet mattr = new SimpleAttributeSet();
StyleConstant.ParagraphAttribute.setAlign
(mattr,StyleConstant.ParagrapConstant.ALIGN_CENTER);
html_doc.SetParagraphAttribute(pos,len,mattr,false);

i got effect on the JTextPane but when tried to save as html file no
paragraph effect come.
pl. help i already stuck from last 5 days.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on HTML Editor Or get search suggestion and latest updates.




Tagged: