That sounds like it should work. Can you provide some sample code? That might help identify the issue.
On Mar 1, 2010, at 9:28 AM, David McNelis wrote: > Morning, > > I have a situation where I am cycling through an array and for each element > in the array I need to add a set of components to a BoxPane. To do this, I > wrote a wtkx file that contained the components that I need to create each > time I go through the array. As I go through an iteration I read in the wtkx > file with a WTKXSerializer.readObject, casting into another BoxPane, then > attempt to add the new object to my parent. Essentially like so: > > WTKXSerializer wtkx = new WTKXSerializer(); > BoxPane child = (BoxPane) wtxk.readObject(this,”myfile.wtkx”); > > parent.add(child); > > This as I go through my application I get no errors, no warnings, but > myfile.wtkx does not actually display. I tried doing something akin to > child.setVisible(true), but it hasn’t made any difference. > > I thought that maybe there was an issue with my parent BoxPane, so I tried > including myfile.wtkx as a wtkx:include parameter in the parent file, and to > my surprise the components in myfile.wtkx displayed as I would have expected > it to using the programmatic method. Am I doing something clearly wrong? Is > there likely an issue with my parent or child wtkx file that I should be > looking for? > > Also, the parent.add(child) is executing…its not like I never get to that > block of code…feel like I need to mention that since it’s the first thing > that comes to mind as a simple issue. > > Thanks for any thoughts. > > David > >
