本文整理了Java中java.awt.Window.setPreferredSize()
方法的一些代码示例,展示了Window.setPreferredSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setPreferredSize()
方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:setPreferredSize
暂无
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
/** Initializes the dialog. */
public SelectUserDialog(@Nullable Project project, @NotNull String title) {
super(project, true);
init();
setTitle(title);
login
.getDocument()
.addDocumentListener(
new DocumentAdapter() {
@Override
protected void textChanged(DocumentEvent event) {
setOKActionEnabled(login.getSelectedUser() != null);
}
});
setOKButtonText(GoogleCloudCoreMessageBundle.message("select.user.continue"));
setCancelButtonText(GoogleCloudCoreMessageBundle.message("select.user.manuallogin"));
setOKActionEnabled(false);
Window window = getWindow();
if (window != null) {
window.setPreferredSize(new Dimension(400, 125));
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
window.setPreferredSize(new Dimension(355, 175));
代码示例来源:origin: com.b3dgs.lionengine/lionengine-core-awt
window.setBackground(Color.BLACK);
window.setIgnoreRepaint(true);
window.setPreferredSize(new Dimension(output.getWidth(), output.getHeight()));
dev.setFullScreenWindow(window);
内容来源于网络,如有侵权,请联系作者删除!