|
From: Francois B. <fb...@us...> - 2003-07-02 02:00:48
|
Hello Ramon,
Just use regular property statements:
<window id=3D"aWindow" type=3D"jframe">
<controls>
<label id=3D"someLabel">
<property name=3D"foreground">
<constant name=3D"java.awt.Color.RED"/>
</property>
</label>
</controls>
<methodCall name=3D"setWidth">
<parameter name=3D"width">
<value type=3D"int" data=3D"640"/>
</parameter>
<parameter name=3D"height">
<value type=3D"int" data=3D"480"/>
</parameter>
</methodCall>
</window>
Alternatively, for the size property, you could declare a
java.awt.Dimension and then use that as a parameter to the property call.
If you wish to have more information, I would like to point out that all
elements are explained in the distribution as well as on the web site
itself: http://jgb.sourceforge.net/documentation/elements/index.php.
If you have more questions, do not hesitate !
Hope that helps !
Fran=E7ois
On Tue, 01 Jul 2003 14:59:38 -0500, "Ramon Williamson"
<ra...@nc...> said:
> Hello.
>=20
> Just getting started using JGB, and was wondering a couple things:
>=20
> 1. How does one set the color of the text for a widget e.g. a label
> 2. Can you set the size of a JFrame being created?
>=20
> Thanks,
>=20
> Ramon Williamson
>=20
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> jgb-general mailing list
> jgb...@li...
> https://lists.sourceforge.net/lists/listinfo/jgb-general
>=20
--
Francois Beausoleil
Developer of Java Gui Builder
http://jgb.sourceforge.net/
|