亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? swingresourcemanager.java

?? 這是一個使用Java編寫的像QQ一樣的即時通訊軟件
?? JAVA
字號:
package com.swtdesigner;import java.awt.Image;import java.awt.Toolkit;import java.io.BufferedInputStream;import java.io.ByteArrayOutputStream;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.util.HashMap;import java.util.Iterator;import javax.swing.ImageIcon;/** * Utility class for managing resources such as colors, fonts, images, etc. *  * This class may be freely distributed as part of any application or plugin. * <p> * Copyright (c) 2003 - 2004, Instantiations, Inc. <br>All Rights Reserved *  * @author scheglov_ke */public class SwingResourceManager {		/**	 * Maps image names to images	 */	private static HashMap<String, Image> m_ClassImageMap = new HashMap<String, Image>();	    /**     * Returns an image encoded by the specified input stream     * @param is InputStream The input stream encoding the image data     * @return Image The image encoded by the specified input stream     */	private static Image getImage(InputStream is) {		try {			ByteArrayOutputStream baos = new ByteArrayOutputStream();			byte buf[] = new byte[1024 * 4];			while (true) {				int n = is.read(buf);				if (n == -1)					break;				baos.write(buf, 0, n);			}			baos.close();			return Toolkit.getDefaultToolkit().createImage(baos.toByteArray());		} catch (Throwable e) {			return null;		}	}	    /**     * Returns an image stored in the file at the specified path relative to the specified class     * @param clazz Class The class relative to which to find the image     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(Class clazz, String path) {		String key = clazz.getName() + '|' + path;		Image image = m_ClassImageMap.get(key);		if (image == null) {			if ((path.length() > 0) && (path.charAt(0) == '/')) {				String newPath = path.substring(1, path.length());				image = getImage(new BufferedInputStream(clazz.getClassLoader().getResourceAsStream(newPath)));			} else {				image = getImage(clazz.getResourceAsStream(path));			}			m_ClassImageMap.put(key, image);		}		return image;	}	    /**     * Returns an image stored in the file at the specified path     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(String path) {		return getImage("default", path); //$NON-NLS-1$	}	    /**     * Returns an image stored in the file at the specified path     * @param section String The storage section in the cache     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(String section, String path) {		String key = section + '|' + SwingResourceManager.class.getName() + '|' + path;		Image image = m_ClassImageMap.get(key);		if (image == null) {			try {				FileInputStream fis = new FileInputStream(path);				image = getImage(fis);				m_ClassImageMap.put(key, image);				fis.close();			} catch (IOException e) {				return null;			}		}		return image;	}	    /**	 * Clear cached images in specified section	 * @param section the section do clear	 */	public static void clearImages(String section) {		for (Iterator I = m_ClassImageMap.keySet().iterator(); I.hasNext();) {			String key = (String) I.next();			if (!key.startsWith(section + '|'))				continue;			Image image = m_ClassImageMap.get(key);			image.flush();			I.remove();		}	}	    /**     * Returns an icon stored in the file at the specified path relative to the specified class     * @param clazz Class The class relative to which to find the icon     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(Class clazz, String path) {		return getIcon(getImage(clazz, path));	}	    /**     * Returns an icon stored in the file at the specified path     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(String path) {		return getIcon("default", path); //$NON-NLS-1$	}	    /**     * Returns an icon stored in the file at the specified path     * @param section String The storage section in the cache     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(String section, String path) {		return getIcon(getImage(section, path));	}    /**     * Returns an icon based on the specified image     * @param image Image The original image     * @return Icon The icon based on the image     */	public static ImageIcon getIcon(Image image) {		if (image == null)			return null;		return new ImageIcon(image);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区三区网站| 亚洲一区av在线| 亚洲激情在线激情| 寂寞少妇一区二区三区| 97精品国产露脸对白| 精品国产91乱码一区二区三区| 国产午夜亚洲精品不卡| 免费在线视频一区| 在线免费观看日本欧美| 国产精品久久影院| 老司机免费视频一区二区 | 国产成人8x视频一区二区| 欧美午夜精品一区二区蜜桃| 日本一区免费视频| 激情综合色播激情啊| 欧美精品第一页| 夜夜夜精品看看| 99这里只有精品| 国产日韩欧美电影| 国产精品77777| 精品毛片乱码1区2区3区| 性久久久久久久久| 欧美三级一区二区| 夜夜嗨av一区二区三区四季av| av男人天堂一区| 国产精品美女久久久久aⅴ国产馆| 蜜桃传媒麻豆第一区在线观看| 777亚洲妇女| 天堂av在线一区| 日韩欧美中文字幕精品| 免费观看一级欧美片| 日韩午夜激情av| 九色porny丨国产精品| 日韩欧美色电影| 狠狠狠色丁香婷婷综合久久五月| 欧美一区二区精品在线| 欧美a一区二区| 26uuu久久综合| 国产sm精品调教视频网站| 国产三级久久久| 91一区一区三区| 一区二区三区不卡视频在线观看| 在线亚洲一区观看| 日本亚洲视频在线| 久久众筹精品私拍模特| 成人免费视频免费观看| 亚洲视频一二三区| 欧美三级三级三级爽爽爽| 午夜久久电影网| 欧美精品一区视频| 成人免费观看视频| 伊人开心综合网| 欧美电影影音先锋| 国产精品夜夜爽| 亚洲天堂精品视频| 7777精品伊人久久久大香线蕉超级流畅| 日韩av中文在线观看| 自拍偷拍欧美激情| 欧美视频中文一区二区三区在线观看| 日韩电影在线免费看| 欧美极品aⅴ影院| 欧美视频一区二区三区在线观看| 免费成人在线影院| 中文幕一区二区三区久久蜜桃| 色激情天天射综合网| 日韩电影在线免费观看| 国产精品久久久一本精品 | 欧美电影免费提供在线观看| 国产在线精品视频| 亚洲欧美日韩国产成人精品影院| 91精品国产综合久久精品图片| 国产麻豆精品视频| 亚洲午夜精品网| 国产欧美视频一区二区| 欧美性受极品xxxx喷水| 国产二区国产一区在线观看 | 亚洲免费观看在线观看| 日韩一区二区在线看片| 91老师片黄在线观看| 久久不见久久见免费视频1| 亚洲卡通欧美制服中文| 久久综合九色欧美综合狠狠 | 久久精品人人爽人人爽| 精品视频在线看| 国产东北露脸精品视频| 六月婷婷色综合| 一区二区在线观看免费| 日本一区二区三区高清不卡 | 国产精品不卡一区二区三区| 欧美一级夜夜爽| 91国产免费观看| 高清国产午夜精品久久久久久| 美女尤物国产一区| 亚洲妇女屁股眼交7| 亚洲视频资源在线| 国产精品嫩草影院com| 亚洲精品在线电影| 91精品国产综合久久精品图片| 91黄色免费网站| 99re成人在线| eeuss影院一区二区三区| 国产自产高清不卡| 久久精品国产色蜜蜜麻豆| 亚洲国产精品久久久久秋霞影院 | 91丨国产丨九色丨pron| 国产精品99久久久| 国产精品一区二区无线| 久久精品噜噜噜成人av农村| 丝袜美腿成人在线| 亚洲电影第三页| 亚洲线精品一区二区三区 | 色老综合老女人久久久| www.在线欧美| 99久久99久久免费精品蜜臀| 9i在线看片成人免费| 99在线热播精品免费| 91蜜桃网址入口| 色婷婷一区二区三区四区| 色哟哟国产精品免费观看| 色激情天天射综合网| 欧美午夜理伦三级在线观看| 欧美专区日韩专区| 欧美日韩国产天堂| 8v天堂国产在线一区二区| 日韩一级二级三级| 精品999久久久| 国产欧美日韩卡一| 中文字幕亚洲成人| 亚洲综合在线视频| 日本三级亚洲精品| 久草精品在线观看| 国产裸体歌舞团一区二区| 99久久精品免费看| 日本精品一级二级| 91精品国产综合久久久久久漫画 | 欧美视频中文字幕| 91精选在线观看| 久久欧美中文字幕| 国产精品国产馆在线真实露脸 | 91色婷婷久久久久合中文| 91麻豆成人久久精品二区三区| 在线免费观看成人短视频| 欧美肥胖老妇做爰| 久久久精品天堂| 亚洲精品久久嫩草网站秘色| 毛片av一区二区| 99精品欧美一区二区三区综合在线| 在线免费观看日本欧美| 精品女同一区二区| 亚洲图片欧美激情| 久久99精品久久久久| 色综合久久久久久久久| 欧美精选在线播放| 国产无人区一区二区三区| 亚洲免费观看视频| 国产精品一区二区男女羞羞无遮挡| av中文字幕亚洲| 日韩视频免费观看高清在线视频| 国产婷婷一区二区| 日精品一区二区| www.久久久久久久久| 精品国产乱码久久久久久久久 | 欧美精品亚洲一区二区在线播放| 精品免费一区二区三区| 一区二区三区av电影| 国产精品综合二区| 欧美人与禽zozo性伦| 中文字幕免费一区| 麻豆免费看一区二区三区| 91浏览器打开| 中文字幕免费不卡| 韩国女主播一区二区三区| 欧美丝袜丝交足nylons图片| 中文成人av在线| 国产精品亚洲а∨天堂免在线| 欧美日韩在线免费视频| 中文字幕色av一区二区三区| 久久精品理论片| 日韩一区二区三区视频| 亚洲国产精品天堂| 91高清视频在线| 亚洲视频香蕉人妖| 国产超碰在线一区| 久久久亚洲精品一区二区三区| 日韩精品色哟哟| 欧美日韩精品三区| 亚洲一本大道在线| 色老汉av一区二区三区| |精品福利一区二区三区| 国产.欧美.日韩| 国产偷国产偷精品高清尤物| 国产一区二区在线电影| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美96一区二区免费视频| 9191国产精品| 麻豆精品久久久| 久久综合狠狠综合| 国产麻豆精品视频| 国产欧美日韩亚州综合 | 国产精品资源站在线|