• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading table model with a custom object  RSS feed

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
Boost this thread!