Andrzej Bialecki | 4 Jan 11:13

Re: Floating panel over the GUI?


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:

(Continue reading)


Gmane