當前位置: 首頁>>代碼示例>>Java>>正文


Java Window.isDisplayable方法代碼示例

本文整理匯總了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);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:14,代碼來源:JWatWorkloadManager.java

示例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.
		}
	}
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:19,代碼來源:Manager.java

示例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);
}
 
開發者ID:HOMlab,項目名稱:QN-ACTR-Release,代碼行數:14,代碼來源:JWatWorkloadManager.java

示例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.
		}
	}
}
 
開發者ID:HOMlab,項目名稱:QN-ACTR-Release,代碼行數:19,代碼來源:Manager.java

示例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);
    }
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:11,代碼來源:Test4319113.java


注:本文中的java.awt.Window.isDisplayable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。