Josiah Haswell

Greenhorn
+ Follow
since Jun 13, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josiah Haswell

This works perfectly, it was just the hint I was looking for!

Thanks!

Joe
16 years ago
I hadn't thought of that, lemme give it a try!

Thanks!

Joe
16 years ago
Hey ranchers!

I need to create a grid of JXImagePanels (basically little JPanels that are easy to add images to), but the grid has to potentially contain many thousands of these. They're small enough that I can get about 30,000 of them out of a 10MB heap space when I instantiate them normally, but I suspect there's a better way to make a grid.

When they're all created, they're all the same and none of them are ever "reused" so I didn't think this would be an appropriate use of the flyweight pattern. Would anyone be able to recommend a solution?

Thanks!

Joe
16 years ago