AlignmentAction in JEdtorPane/HTML Document

Hi,

I'm still developping my html editor.Here's my problem :

when i apply an AlignmentAction (StyledEditorKit.AlignmentAction ("Align Left", StyleConstants.ALIGN_LEFT) in the JEditorPane,

it is displayed correctly but not saved in the HTML format . So when i save the document from the JEditor and reopen it, the alignment is not taken...

What shoul i do to make the alignment efficient in HTML format?

[442 byte] By [JAVA-GUY] at [2007-9-26 1:16:54]
# 1
Me too facing the same problem.....Anyone to help?
sasivarnan at 2007-6-29 0:45:23 > top of Java-index,Archived Forums,Swing...
# 2
hi !!!!got any solutions?
srikanth105 at 2007-6-29 0:45:23 > top of Java-index,Archived Forums,Swing...
# 3
.
srikanth105 at 2007-6-29 0:45:23 > top of Java-index,Archived Forums,Swing...
# 4

hi, my editor saves alignment, but when i open the file next time, i'm unable to edit alignments.

try this:

AlignmentAction (new HTMLEditorKit.AlignmentAction ("Align Left", StyleConstants.ALIGN_LEFT);

it works and saves, but is not editable next time.

please get in touch if you solve this problem.

good luck!

gocha at 2007-6-29 0:45:23 > top of Java-index,Archived Forums,Swing...
# 5
hi!have you made Insert Image in your HTML Editor?how did you solve a problem with relative path?
gocha at 2007-6-29 0:45:23 > top of Java-index,Archived Forums,Swing...