本文整理汇总了Java中java.awt.Window.isDisplayable方法的典型用法代码示例。如果您正苦于以下问题:Java Window.isDisplayable方法的具体用法?Java Window.isDisplayable怎么用?Java Window.isDisplayable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.awt.Window
的用法示例。
在下文中一共展示了Window.isDisplayable方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: exit
import java.awt.Window; //导入方法依赖的package包/类
/**
* This method has to be called each time a JMT application is terminated. If all applications
* are terminated, JVM is killed.
* @param application application to be terminated. If application was not disposed,
* this method will do 'dispose()' too.
*/
public static void exit(Window application) {
// Disposes application window if user did not do it.
if (application.isDisplayable()) {
application.dispose();
}
windows.remove(application);
}
示例2: exit
import java.awt.Window; //导入方法依赖的package包/类
/**
* This method has to be called each time a JMT application is terminated. If all applications
* are terminated, JVM is killed.
* @param application application to be terminated. If application was not disposed,
* this method will do 'dispose()' too.
*/
public static void exit(Window application) {
synchronized (windows) {
// Disposes application window if user did not do it.
if (application.isDisplayable()) {
application.dispose();
}
windows.remove(application);
if (windows.isEmpty()) {
// System.exit(0); // Closes current JVM with no error code.
}
}
}
示例3: exit
import java.awt.Window; //导入方法依赖的package包/类
/**
* This method has to be called each time a JMT application is terminated. If all applications
* are terminated, JVM is killed.
* @param application application to be terminated. If application was not disposed,
* this method will do 'dispose()' too.
*/
public static void exit(Window application) {
// Disposes application window if user didn't do it.
if (application.isDisplayable()) {
application.dispose();
}
windows.remove(application);
}
示例4: exit
import java.awt.Window; //导入方法依赖的package包/类
/**
* This method has to be called each time a JMT application is terminated. If all applications
* are terminated, JVM is killed.
* @param application application to be terminated. If application was not disposed,
* this method will do 'dispose()' too.
*/
public static void exit(Window application) {
synchronized (windows) {
// Disposes application window if user didn't do it.
if (application.isDisplayable()) {
application.dispose();
}
windows.remove(application);
if (windows.isEmpty()) {
System.exit(0); // Closes current JVM with no error code.
}
}
}
示例5: updateWindowTreeUI
import java.awt.Window; //导入方法依赖的package包/类
private static void updateWindowTreeUI(Window window) {
SwingUtilities.updateComponentTreeUI(window);
Window[] arrwindow = window.getOwnedWindows();
int n = arrwindow.length;
while (--n >= 0) {
Window window2 = arrwindow[n];
if (!window2.isDisplayable()) continue;
Test4319113.updateWindowTreeUI(window2);
}
}