4 Jan 11:13
Re: Floating panel over the GUI?
Andrzej Bialecki <ab <at> getopt.org>
2005-01-04 10:13:07 GMT
2005-01-04 10:13:07 GMT
Schuhmacher, Bret wrote: > Andrzej, > > Thanks for the response! Nice to hear from "the man"!I appreciate > all your work on Thinlet and think it's a great thing - the ability to > easily define a GUI in Java and not have to (re)write a lot of code is > fantastic!
Well, most of this work is Robert's, I'm just preventing it from gathering too much bitrot... > Things just hang indefinitely when I try it your way in my J2ME app. In > fact, the program fails to progress past the UI load (i.e. > add(parse("thinletdef.xml"))) when I include a Dialog, based on a bunch > of println statements I put in to check its progress... I don't even > get to the point where I instantiate the dialog - just putting one in my > XML causes the entire GUI to fail to load. Wonder if they work under > J2ME? Anyway, I'm sure I'm doing something wrong if it works for you. >
I'll keep beating on it until I get it right! Hmmm. Ok I didn't make it clear - the ASCII drawing was reflecting the final widget hierarchy, not the XML elements... The top level XUL element must be either a panel or a dialog - you can't (I'm not sure why?) put a dialog inside panel directly in XML - you need to do this programmatically. Prepare two XML files. One is as follows: panel.xml: <?xml version='1.0' encoding='UTF-8'?> <panel weightx='1' weighty='1' halign='fill' valign='fill' columns='1'> <label text='Hello world!'/> </panel> Then, the other file is as follows: dialog.xml: <?xml version='1.0' encoding='UTF-8'?> <dialog text='Dialog' columns='1'> <label text='Hello dialog!'/> </panel> Then, in your class do the following: ... Object panel = add(parse("panel.xml")); add(panel, parse("dialog.xml")); -- -- Best regards, Andrzej Bialecki ___. ___ ___ ___ _ _ __________________________________ [__ || __|__/|__||\/| Information Retrieval, Semantic Web ___|||__|| \| || | Embedded Unix, System Integration http://www.sigram.com Contact: info at sigram dot com _________________________________________________ Thinlet Project Site | http://thinlet.com Thinlet Addon Central | http://thinletplus.com Thinlet World News Blog | http://thinletworld.com
I appreciate
> all your work on Thinlet and think it's a great thing - the ability to
> easily define a GUI in Java and not have to (re)write a lot of code is
> fantastic!
RSS Feed