I have managed to add tables in a styled document(thanks to people at the java forum) but here is the problem. I am trying to add the table to a paginated styled document(by stas) but the thing is that the entire document always seems to be painted incorrectly. I have been trying this for quite some time and really not sure what else to do
The code is listed in my attachment at the link has two files, one file is the main class which is paginated_word_processor. The other file is the paginatedstylededitor which has all the painting views.
I have a feeling the problem lies in the way the document is painted and not the way the table is painted but then again i could be wrong.