JTable and JPA Pagination through custom TableModel

I really want to talk about JTable, Beans Binding and JPA pagination but I think I need to write about JTable and JPA pagination first. So I will take the Beans binding stuff in another post. By the way, choose wisely your JPA Provider/DB Provider combination, as some combinations will not give you any real paginations at all. For example, neither OpenJPA, Hibernate or TopLink/EclipseLink seems to support Apache Derby pagination (OFFSET/FETCH). The example here uses Derby and TopLink which is a bad example because the JPA pagination doesn’t get translated to SQL command for pagination. So if you really want proper pagination you should use other combination like Hibernate JPA/HSQLDB. ...

August 17, 2009

How to select all tables in a Microsoft Word Document

It seems it’s impossible to do it from the user interface. But I found here that it could be done using a VB Macro: Sub ChangeAllTablesToNormal() Dim myTable As Table For Each myTable In ActiveDocument.Tables myTable.Select Selection.Style = ActiveDocument.Styles("Normal") Next myTable ActiveDocument.Repaginate End Sub You may try to change ActiveDocument.Styles("Normal") to ActiveDocument.Styles("Tables Normal") as suggested by Abhishek if it doesn’t work for you.

March 17, 2007