Search code examples
javajavascripthtmlgwtgxt

How to create iframe JAVASCRIPT to JAVA in GWT?


Can anyone help me to javascript into java in gwt, and I need one simple example for this and I am gonna one JavaScript(URL) user form in to Java.

Thanking you


Solution

  • Try with Frame to create iframe in JAVA in GWT.

     public class FrameExample implements EntryPoint {
    
        public void onModuleLoad() {
          // Make a new frame, and point it at Google.
          Frame frame = new Frame("http://www.google.com/");
    
          // Add it to the root panel.
          RootPanel.get().add(frame);
        }
      }
    

    Find more than 30 Code Examples here Java Code Examples for Frame