Re: Re: Dynamically adding internal frame to desktop pane
masukomi <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
<xml....>
<frame....>
<panel>
<tabbedpane id="tabbedPane"></tabbedpane>
</panel>
</frame>
swix.render(new File("swingLayout.xml"));
// the example above
Component aTabPanel = swix.render(new File("tabContents.xml"));
// a file with an xml declaration and a <panel> tag and whatever you
want in that panel
tabbedPane.addTab("firstTab", aTabPanel);
/// done.
On Jan 27, 2004, at 6:53 PM, David Kafrissen wrote:
> Greetings,
>
> Are there any simple examples someone could send to me?
>
> Thanks in advance,
>
> David Kafrissen
>
> "masukomi" <[email protected]> wrote in message
> news:<[email protected]>...
>> the frame you create from the XM should have an id
>>
>> once you know what you want to add you can either use standard java to
>> create the internal stuff and add it to the component with the same
>> name as the id or you can have a snippet of XML for each of the
>> potential pieces that would be inserted into it.. then, once you've
>> decided what you want, use SwingEngine.render(...) (which returns a
>> component) with the appropriate xml snippet passed to it and add the
>> return value to the Component you generated the first time around
>>
>>
>> -Kate
>>
>> On Jan 16, 2004, at 3:36 PM, David Kafrissen wrote:
>>
>>> Greetings,
>>>
>>> I am new to swixml and would like any examples.
>>>
>>> Specifically, I would like to create a desktoppane and then depending
>>> on
>>> user action draw new internal frames.
>>>
>>> There is the one layout example that comes with the code that has
>>> fully
>>> defined a desktoppane and internalframes in the XML file. But how
>>> would I
>>> add internalframes after I instantiated the desktoppane and any
>>> initial
>>> internalframes?
>>>
>>> Regards,
>>>
>>> Dave
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Forum mailing list
>>> [email protected]
>>> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>>>
>>>
>
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com