floater
Java Jedi
总版主
发贴: 3233
积分: 421
|
于 2005-01-18 13:03
well, in your case, the model B *is* the state object.
You may start with the simple approach - writing everything together, then try to refactor the code. Swing table view/model can easily handle thousands of rows. I am not sure how much data you have in your case.
Try to be specific, don't try to generalize it, otherwise it's hard to see the benefit of good rules. Your first question is a generalized one.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code
|