> HTML applet = new HTML();
> panel.add(applet);
> applet.setHTML("<APPLET src=\"/applets/MyApplet.class\" etc.");Yes, but in this case you have to take care that it works in different browsers, which can become a nightmare: http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html#anywhere On Sep 30, 11:59 am, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > Hello ... whoever, > > ship schrieb: > > > I am using gwt in a application in which when i click on a button, > > then an applet will be called. > > How can i call a simple java applet in my gwt app??? > > Pl help me!!!!!!!!! > > first of all, your keyboard needs a repair, it repeats ! and ? > all the time. > > What exactly do you mean with "call an applet"? If we're > talking of just starting an applet, you can create a > HTML-widget and set the HTML-tags for the applet (directly > typed in, might not work): > > HTML applet = new HTML(); > panel.add(applet); > applet.setHTML("<APPLET src=\"/applets/MyApplet.class\" etc."); > > The browser happily interprets the HTML and should load and > start the applet. That way you should also be able to pass > arguments using the PARAM-tags. > > If you want a steady communication, you have to use the Java- > to-Javascript-bridge provided by the browser, that you have > to access using JSNI. > > Regards, Lothar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
