forum  

Re: [Forum] JDialog with an applet

List for Users of Carlsbad Cubes' Technologies and Products
Wed, 02 Nov 2005 10:38:18 -0800

I believe I did use the current CVS, i.e., SwingEngine 1.5, as well as the Parser.java. I'm runing Java 1.5.0_05. As you see attached, t I can load the main applet. Doing File > Find fails. "Find" is a JDialog.

List for Users of Carlsbad Cubes' Technologies and Products wrote:
Try it with the version in CVS. There is a problem with Applet Security in the
current swixml release that got recently addressed and a fix is avail. in CVS

--wolf

Quoting List for Users of Carlsbad Cubes' Technologies and Products
<Forum@carlsbadcubes.com>:

  
I'd like my application to run both as a client as well as an applet. As
a client, the JFrame and subequent JDialog  frames successfully display.
As an applet, the main JApplet displays correctly, using
SwingEngine.insert(xxx, japplet) (with the patch). However, the applet
cannot display the JDialog correctly  because the variables that are
supposed to be automatically assigned is not happening. I'm not sure if
I'm supposed to use SwingEngine.render or insert. As an aside,
_swix.test() does display the JDialog applet correctly.

Any help would be appreciated. Thanks.

public class Find {
SwingEngine _swix = new SwingEngine(this);
JDialog          _dialog; // should be automatically assigned

public Find(URL url)
{
   try {
       _swix.render(url);
   } catch (Exception e) {    e.printStackTrace(System.out); }


//    _swix.test() -- this *works*
   if (_dialog == null)
       D.fatal("only happens when an applet");
...
   _dialog.pack();
   _dialog.setVisible(true);
}
/* XML file
<?xml version="1.0" encoding="UTF-8"?>
<dialog id="_dialog" title = "${dlg.find.title}" modal="true"
bundle="org.buschman.share.Bundle"
defaultCloseOperation="JFrame.HIDE_ON_CLOSE">
*/


_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

    




_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com


  

GIF image

_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com