⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageressource.java

📁 JavaExplorer是一个独立于平台的浏览器
💻 JAVA
字号:
/**  * File and FTP Explorer  * Copyright 2002  * BOESCH Vincent  *  * This program is free software; you can redistribute it and/or  * modify it under the terms of the GNU General Public License  * as published by the Free Software Foundation; either version 2  * of the License, or (at your option) any later version.  *  * This program is distributed in the hope that it will be useful,  * but WITHOUT ANY WARRANTY; without even the implied warranty of  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  * GNU General Public License for more details.  *  * You should have received a copy of the GNU General Public License  * along with this program; if not, write to the Free Software  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  */package javaexplorer.ressource;import java.awt.Image;import javax.swing.ImageIcon;public class ImageRessource {    /**     *  Description of the Field     */    public static ImageIcon iiAdd = null;    /**     *  Description of the Field     */    public static ImageIcon iiClose = null;    /**     *  Description of the Field     */    public static ImageIcon iiCloseThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiCopy = null;    /**     *  Description of the Field     */    public static ImageIcon iiCopyThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiCut = null;    /**     *  Description of the Field     */    public static ImageIcon iiCutThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiDelete = null;    /**     *  Description of the Field     */    public static ImageIcon iiDeleteThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiDisk = null;    /**     *  Description of the Field     */    public static ImageIcon iiEnglish = null;    /**     *  Description of the Field     */    public static ImageIcon iiExeThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiExplorer = null;    /**     *  Description of the Field     */    public static ImageIcon iiExtThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiFile = null;    /**     *  Description of the Field     */    public static ImageIcon iiFileThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiFolder = null;    /**     *  Description of the Field     */    public static ImageIcon iiFolderThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiDiskThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiDiskFtpThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiFrench = null;    /**     *  Description of the Field     */    public static ImageIcon iiFtpConnect = null;    /**     *  Description of the Field     */    public static ImageIcon iiHttpConnect = null;        /**     *  Description of the Field     */    public static ImageIcon iiGerman = null;    /**     *  Description of the Field     */    public static ImageIcon iiImg = null;    /**     *  Description of the Field     */    public static ImageIcon iiImgThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiInfo = null;    /**     *  Description of the Field     */    public static ImageIcon iiInfoThb = null;    //Icones    /**     *  Description of the Field     */    public static ImageIcon iiJavaExplorer = null;    /**     *  Description of the Field     */    public static ImageIcon iiLookAndFeel = null;    /**     *  Description of the Field     */    public static ImageIcon iiManage = null;    /**     *  Description of the Field     */    public static ImageIcon iiNew = null;    /**     *  Description of the Field     */    public static ImageIcon iiNewFolder = null;    /**     *  Description of the Field     */    public static ImageIcon iiNewFolderThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiNext = null;    /**     *  Description of the Field     */    public static ImageIcon iiOptions = null;    /**     *  Description of the Field     */    public static ImageIcon iiPaste = null;    /**     *  Description of the Field     */    public static ImageIcon iiPasteThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiPrev = null;    /**     *  Description of the Field     */    public static ImageIcon iiProcess = null;    /**     *  Description of the Field     */    public static ImageIcon iiProcessThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiQuit = null;    /**     *  Description of the Field     */    public static ImageIcon iiRename = null;    /**     *  Description of the Field     */    public static ImageIcon iiRenameThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiSave = null;    /**     *  Description of the Field     */    public static ImageIcon iiSearch = null;    /**     *  Description of the Field     */    public static ImageIcon iiSelectAll = null;    /**     *  Description of the Field     */    public static ImageIcon iiSpanish = null;    /**     *  Description of the Field     */    public static ImageIcon iiStop = null;    /**     *  Description of the Field     */    public static ImageIcon iiStopThb = null;        /**     *  Description of the Field     */    public static ImageIcon iiUpDir = null;    /**     *  Description of the Field     */    public static ImageIcon iiWait = null;    /**     *  Description of the Field     */    public static ImageIcon iiWaitThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiZip = null;    /**     *  Description of the Field     */    public static ImageIcon iiZipThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoom = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomIn = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomInThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomOut = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomOutThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomFit = null;    /**     *  Description of the Field     */    public static ImageIcon iiZoomFitThb = null;    /**     *  Description of the Field     */    public static ImageIcon iiDriveThb = null;            public static ImageIcon iconInfo = null;    public static ImageIcon iconError = null;    public static ImageIcon iconDebug = null;            /**     */    public static void initIcon() {        //R閏up閞ation des icones        iiJavaExplorer = loadImage("/images/32x32/Globe.gif");        iiManage = loadImage("/images/20x20/BCard.gif");        iiSearch = loadImage("/images/20x20/Binocular.gif");        iiZip = loadImage("/images/20x20/Box.gif");        iiCopy = loadImage("/images/20x20/Copy.gif");        iiCut = loadImage("/images/20x20/Cut.gif");        iiExplorer = loadImage("/images/20x20/Data.gif");        iiDelete = loadImage("/images/20x20/Delete.gif");        iiDisk = loadImage("/images/20x20/Disk.gif");        iiFile = loadImage("/images/20x20/Document.gif");        iiRename = loadImage("/images/20x20/DocumentDraw.gif");        iiQuit = loadImage("/images/20x20/Exit.gif");        iiGerman = loadImage("/images/20x20/flg_de.gif");        iiFrench = loadImage("/images/20x20/flg_fr.gif");        iiSpanish = loadImage("/images/20x20/flg_sp.gif");        iiEnglish = loadImage("/images/20x20/flg_uk.gif");        iiFolder = loadImage("/images/20x20/Folder.gif");        iiUpDir = loadImage("/images/20x20/FolderOut.gif");        iiClose = loadImage("/images/20x20/Hide.gif");        iiWait = loadImage("/images/20x20/Hourglass.gif");        iiInfo = loadImage("/images/20x20/Inform.gif");        iiPrev = loadImage("/images/20x20/Left.gif");        iiZoom = loadImage("/images/20x20/Magnify.gif");        iiZoomOut = loadImage("/images/20x20/MagnifyMinus.gif");        iiZoomIn = loadImage("/images/20x20/MagnifyPlus.gif");        iiZoomFit = loadImage("/images/20x20/MagnifyFit.gif");        iiNew = loadImage("/images/20x20/New.gif");        iiNewFolder = loadImage("/images/20x20/NewFolder.gif");        iiOptions = loadImage("/images/20x20/Options.gif");        iiImg = loadImage("/images/20x20/Palette.gif");        iiPaste = loadImage("/images/20x20/Paste.gif");        iiAdd = loadImage("/images/20x20/Plus.gif");        iiNext = loadImage("/images/20x20/Right.gif");        iiSave = loadImage("/images/20x20/SaveAs.gif");        iiStop = loadImage("/images/20x20/Stop.gif");        iiProcess = loadImage("/images/20x20/VCRPlay.gif");        iiFtpConnect = loadImage("/images/20x20/FTPConnect.gif");        iiHttpConnect = loadImage("/images/20x20/HTTPConnect.gif");        iiSelectAll = loadImage("/images/20x20/PlusPlus.gif");        iiExeThb = loadImage("/images/16x16/BlueCircle.gif");        iiDriveThb = loadImage("/images/16x16/Drive.gif");        iiFileThb = loadImage("/images/16x16/Document.gif");        iiFolderThb = loadImage("/images/16x16/Folder.gif");        iiDiskThb = loadImage("/images/16x16/Drive.gif");        iiDiskFtpThb = loadImage("/images/16x16/Ftp.gif");        iiExtThb = loadImage("/images/16x16/GreenCircle.gif");        iiNewFolderThb = loadImage("/images/16x16/NewFolder.gif");        if (iiZip != null) {            iiZipThb = new ImageIcon(iiZip.getImage().getScaledInstance(16, 16,                        java.awt.Image.SCALE_SMOOTH));        }        if (iiProcess != null) {            iiProcessThb = new ImageIcon(iiProcess.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));            ;        }        if (iiRename != null) {            iiRenameThb = new ImageIcon(iiRename.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiImg != null) {            iiImgThb = new ImageIcon(iiImg.getImage().getScaledInstance(16, 16,                        java.awt.Image.SCALE_SMOOTH));        }        if (iiZoom != null) {            iiZoomThb = new ImageIcon(iiZoom.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiZoomIn != null) {            iiZoomInThb = new ImageIcon(iiZoomIn.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiZoomOut != null) {            iiZoomOutThb = new ImageIcon(iiZoomIn.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiZoomFit != null) {            iiZoomFitThb = new ImageIcon(iiZoomFit.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiClose != null) {            iiCloseThb = new ImageIcon(iiClose.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiCopy != null) {            iiCopyThb = new ImageIcon(iiCopy.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiCut != null) {            iiCutThb = new ImageIcon(iiCut.getImage().getScaledInstance(16, 16,                        java.awt.Image.SCALE_SMOOTH));        }        if (iiPaste != null) {            iiPasteThb = new ImageIcon(iiPaste.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiDelete != null) {            iiDeleteThb = new ImageIcon(iiDelete.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiStop != null) {        	iiStopThb = new ImageIcon(iiStop.getImage().getScaledInstance(16,        			16, java.awt.Image.SCALE_SMOOTH));        }                if (iiInfo != null) {            iiInfoThb = new ImageIcon(iiInfo.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }        if (iiWait != null) {            iiWaitThb = new ImageIcon(iiWait.getImage().getScaledInstance(16,                        16, java.awt.Image.SCALE_SMOOTH));        }                iconInfo = new ImageIcon(ImageRessource.iiInfoThb.getImage().getScaledInstance(10,10, Image.SCALE_SMOOTH));        iconError = new ImageIcon(ImageRessource.iiDeleteThb.getImage().getScaledInstance(10,10, Image.SCALE_SMOOTH));        iconDebug = new ImageIcon(ImageRessource.iiExeThb.getImage().getScaledInstance(10,10, Image.SCALE_SMOOTH));            }    /**     *@param  ressource  Description of the     *      Parameter     *@return            Description of the     *      Return Value     */    public static ImageIcon loadImage(String ressource) {        ImageIcon ii = null;        java.net.URL img = ImageRessource.class.getResource(ressource);        if (img != null) {            ii = new ImageIcon(img);        }        return ii;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -