pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger and Beth Whitcomb <RogerandB...@rbwhitcomb.com>
Subject Re: Desktop HelloBXML in NetRexx without package statement;Cool stuff!
Date Mon, 08 Jan 2018 15:29:24 GMT
Nice!  Have you tried a larger application?  Running into any issues?

Thanks,
~Roger Whitcomb


On 1/6/18 5:26 AM, Jason Martin wrote:
> import org.apache.pivot.beans.BXMLSerializer
> import org.apache.pivot.collections.Map
> import org.apache.pivot.wtk.Application
> import org.apache.pivot.wtk.DesktopApplicationContext
> import org.apache.pivot.wtk.Display
> import org.apache.pivot.wtk.Window
>
> class HelloBXML public implements Application
>
>
>   properties private
>     win=Window null
>
>   method startup(display=Display,properties=Map) signals Exception
>     bxml=BXMLSerializer()
>     win=Window bxml.readObject(HelloBXML.class,"hello.bxml")
>     win.open(display)
>
>   method shutdown(optional=boolean) returns boolean
>     if win\==null then do
>       win.close()
>     end
>     return 0
>
>   method suspend
>
>   method resume
>
>   method main(args=String[]) static
>     DesktopApplicationContext.main(HelloBXML.class,args)
>


Mime
View raw message