I am new to this forum.I had made a simple editor in java and embed it in jsp.I want to add alignment option to it but it is not working some times.SO please help me.Any help will be appreciated.
Below is the method which load the file in editor from database.
hi Rob Camick ,
Actually i don't know where the problem is thats why i had included code that i suspects the problem will be.Yes alignment action will be applied by JButton on toolbar.Thanks for reply.
hi Rob Camick,
what do you mean by SSCCE-short self contained, correct example .Means what other code you need that will reveal you the problem?I am storing the editor's content into database and also retrieving it from the database.and after that when i am trying to implement alignment to the retrieved data it will not work.If i will just write the code in editor and then apply alignment and then save it then alignment is working.
That's way too much code to read through and make sense of. What's more, most of it is likely irrelevant to the problem at hand. Please read up on what an SSCCE is, especially what the first "S" stands for.
I also don't know why it is happening but it is happening.
Below is the sentence for center alignment.StyledEditorKit provide alignment action.So I am using that in built functionallity.Now how could i debug that ???I had seen output before and after applying alignment sometimes alignment is changed and sometimes it remains as it is.
catch it before it slithers away! Oh wait, it's a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss