gpt4 book ai didi

java - 如何最大化 GWT 中的根面板大小?

转载 作者:太空宇宙 更新时间:2023-11-04 15:39:18 24 4
gpt4 key购买 nike

如何在 GWT 中最大化根面板大小?

最佳答案

对于全窗口应用程序,使用 RootPanel.get() 获取容器或 RootLayoutPanel.get()在 EntryPoint 的 onModuleLoad() 中。两者都将作为绝对定位的小部件附加到文档主体。

来自邮件示例:

public void onModuleLoad()
{
DockLayoutPanel outer = binder.createAndBindUi(this);

// Get rid of scrollbars, and clear out the window's built-in margin,
// because we want to take advantage of the entire client area.
Window.enableScrolling(false);
Window.setMargin("0px");

RootLayoutPanel root = RootLayoutPanel.get();
root.add(outer);
}

关于java - 如何最大化 GWT 中的根面板大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5296521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com