From: Kay <Kay...@be...> - 2005-08-02 15:00:03
|
Hi, The starting point for displaying a gui with gui4j is always a call to either Gui4j.createView() (for JFrames) or Gui4j.createDialog() (for JDialogs). JApplets are not supported. I'm not an expert in applets. Is it specified how an applet container (e.g. a browser) instantiates an applet? I would suspect that it calls the default constructor for the desired JApplet-Subclass and then calls the lifecycle methods init(), start(), etc. So to use gui4j we would need to provide a Gui4jApplet base class that clients could subclass just to override some methods that define the xml resource to use etc. The base class would be responsible to render its contents according to the xml definition meaning the applet would have to load the whole gui4j framework. In principle this could work, but if the applet is used remotely (as they usually are) that might be too much overhead. Does that make sense? Any other thoughts about this? Kay > I"m a little new to java, so please forgive any obvious glaring errors. > I haven"t been able to garner from any documentation the answer thus > far, and was wondering if anyone would be > able to point me to possibly some example code, or documentation > regarding the subject. Is it > possible to use gui4j to generate interfaces inside an applet, not just > free windows? > > Regards, > Mike "Fuzzy" Partin |