Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.
Bret Hansen
Unregistered
|
Not usually applicable
07/30/03 01:29 AM
|
|
|
While the pattern does reduce object creation it is not always as applicable as this article implies. For instance the line drawing example has a huge issue. It can not repaint itself after a blur. The data to paint it is not stored anywhere. The heavy weight version could be readily modified to be re-drawable.
The swing tree node example that displayed the file system does work well, because the state is stored in the file system. If the re-fetch of the data was more expensive (like database or web service) then it would be necessary to maintain sufficient state to repaint.
The article is concise though!
|
|
0 registered and 1 anonymous users are browsing this forum.
Moderator:
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Thread views: 9305
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5