Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading table model with a custom object

Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a set of objects that will be used to build a JTable. They
are as follows :

contains Vector TableRowLayout
contains TableColumnLayout
contains Object

What I considered doing was have a base model class with a loadModel method
which took the TableLayout as a parameter and loading the model data, then
extend this class for each table in my application. This class would have a
populate method that build the TableLayout, then calls the base loadModel method. I want to try and keep this as generic as possible. Does this approach make sense?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic