See: Table From Database Java Tips Weblog for some ideas. The TableFromDatabaseExample code would be the best place to start to better help you understand how TableModels work.