Re: Dialog in XML?
[email protected] Wed, 27 Jul 2005 16:54:08 -0700
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
It's rather simple to create a dialog with swixml.
Your XML descriptor would start something like this:
<dialog id="dialog" title="about_Title" size="380,400" modal="true"
Resizable="false">
<panel id="panel" layout="GridBagLayout">
<label icon="img_about_banner">
Your JAVA code to load the xml and init. the dialog could look like this:
public final class AboutDialog implements ... {
private JDialog dialog;
..
public AboutDialog() {
try {
swix.render( "xml/aboutdialog.xml" ) );
} catch (Exception e) {
e.printStackTrace();
}
.. more custom setup here ..
dialog.setVisible( true );
}
-wolf
Quoting [email protected]:
> Can SwiXml render a dialog declared as an XML file (or part of the
> frame's XML file)? If so, please provide one or more samples. If there
> is more than one way to do this, please list the advantages of each.
>
> Thanks,
> Kevin
>
>
>
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>