Chris, Swixml is just a thin layer on top off the javax.swing package. Every tag and attribute you put into an XML descriptor translate into java constructor and method invocations at runtime.
The tag you mentioned for instance: <spinner id="age" Size="32,75" Value="35" /> would instantiate a JSpinner object, give it a size by instantiating a Dimension object with 32 and 37 and finally try to invoke the JSpinner's setValue method with a String "35". (BTW, 32 and 37 are not a numeric range but the dimensions of the control) The final step will not succeed because there is no model set for the spinner object and consulting the JSpinner's jdoc: "If the SpinnerModel implementation doesn't support the specified value then an IllegalArgumentException is thrown." Like with most other swing "input"-components you should consider using a model and not setting values directly through Swixml. Using the initclass attribute could solve this issue but probably requires experience and implementation of a helper class. (Check the initclass/Combobox sample on the web site ...) Wolf -- Wolf Paulus C a r l s b a d C u b e s mailto:[EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Chris Jackson > Sent: Wednesday, April 16, 2003 9:09 AM > To: [email protected] > Subject: [Forum] spinner size > > > I'm just getting into swixml and can't seem to set the width and value > of a spinner - I looked in the tag reference docs, tried Size and Value > are listed - is it possible they are the docs but not implemented? If > so, how do I tell what attributes are implemented and which are not? > My demo code sez': > > [Attribute: Value="35"] not applied for tag: <spinner> > > for: > <spinner id="age" Size="32,75" Value="35" /> > > I'm hoping to use swixml to build editors panels for xml snippets > fetched from a remote server - this will make my life too easy! > > > > -- > Chris Jackson <[EMAIL PROTECTED]> > > > > _______________________________________________ > Forum mailing list > [email protected] > http://mars.lunarpages.com/mailman/listinfo/forum_carlsbadcubes.com > >
