This recipe describes how to put one of these fancy Java-Applets on a page using Coast.
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/AppletPath "/static/applets/"" "..." "/Ext2MIMETypeMap {" " /gif "image/gif"" " /jpg "image/jpeg"" " /css "text/css"" " /class "text/plain"" "}" } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/Renderers {" "..." "/AppletRenderer { Applet }" "..." } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/ButtAppl {" " /Applet {" " /Options "width=380 height=90" # size of the whole applet" " /CodeBase { /Lookup AppletPath }" " /Applet "AppletButton.class"" " /Params {" " /WINDOWCLASS { "TestWindow" }" " /BUTTONTEXT { "Creates a new window ..."}" " /WINDOWTITLE { "my Window" }" " /WINDOWWIDTH { "500" }" " /WINDOWHEIGHT { "300" }" " /FONT { "SansSerif" }" " }" " }" "}" } }]]As text on this java button may be written:
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/WrittenOnButton {" " /String {" " /Default "dynamically rendered text"" " }" "}" } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "..." "<p><center>[[#wd Lookup ButtAppl ]]</center>" "..." } }]]
You might have some problems with this recipe because of one or more of the following items: