Skip to main content

best way to realize XML?

No replies
jtr
Offline
Joined: 2003-06-10
Points: 0

I've been playing around with some simple examples of both the Java and the XML versions of JDNC component trees. The XML is a good fit for some stuff I'd like to do, like simple dialog boxes.

Anyway, I'm wondering what's the best way to realize XML components. I'm current doing something like this:

ObjectRealizer realizer = Application.getObjectRealizer();
JComponent jc = (JComponent) realizer.getObject("my.xml");
panel.add(jc);

But using ObjectRealizer kinda worries me and I didn't see examples about manually realizing except in Application itself. Is this the best way to do this?