【问题标题】:How to create iframe JAVASCRIPT to JAVA in GWT?如何在 GWT 中创建 iframe JAVASCRIPT 到 JAVA?
【发布时间】:2014-05-07 18:37:36
【问题描述】:

谁能帮我在 gwt 中将 javascript 转换为 java,我需要一个简单的例子,我将一个 JavaScript(URL) 用户表单转换为 Java。

谢谢你

【问题讨论】:

  • 我不确定我是否理解你。你能给我们更多的细节吗?到目前为止,您尝试过什么?
  • 我想在管理员端使用 GWT 中的 iframe 将一个 JAVASCRIPT 页面放入 JAVA 页面..!!!

标签: java javascript html gwt gxt


【解决方案1】:

尝试使用Frame 在 GWT 中的 JAVA 中创建 iframe。

 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);
    }
  }

在此处查找 30 多个代码示例 Java Code Examples for Frame

【讨论】:

  • @user3479835 如果需要,请查看代码示例。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-03-02
  • 2011-04-11
  • 1970-01-01
  • 2013-09-23
  • 1970-01-01
  • 1970-01-01
  • 2012-07-06
相关资源
最近更新 更多