本文整理匯總了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);
}
}