On Mon, 24 Nov 2008, Thies Edeling wrote: > I was wondering what the best aproach is, memory-wise, to reference a > panel from it's parent (or other compent). Either keep a reference to a > panel as an instance variable in it's parent or look it up in the > hierarchy using get(path). The look up in the hierarchy is more brittle > but I'm not entirely sure what the memory impact (if any) is of storing > it as an instance var.
The problem is not the memory usage but coupling, which should be reduced by using Component.visitChildren() instead of get(path). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
