public static enum Window.Type extends Enum<Window.Type>
Frame
或
Dialog
实例。
某些平台可能不完全支持某个窗口类型。根据支持的程度,对窗型的一些性质可能违背。
Window.getType()
,
Window.setType(java.awt.Window.Type)
Enum Constant and Description |
---|
NORMAL
表示一个空的正常的窗口。
|
POPUP
表示一个空的弹出窗口。
|
UTILITY
表示一个空的效用窗口。
|
Modifier and Type | Method and Description |
---|---|
static Window.Type |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Window.Type[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final Window.Type NORMAL
Window
类或其后代对象的默认类型。使用此类型为普通的顶级窗口。
public static final Window.Type UTILITY
Frame
或
Dialog
对象渲染窗口,如果它具有装饰功能。
public static final Window.Type POPUP
Frame
或
Dialog
类,具有装饰功能。
public static Window.Type[] values()
对于(window.type C:窗口类型。values()) 系统,println(C);
public static Window.Type valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.