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

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

?? systraymenuicon.java

?? 網站即時通訊系統
?? JAVA
字號:
/*********************************************************************************                                 SysTrayMenuIcon.java                                 --------------------    author               : Tamas Bara    copyright            : (C) 2002-2004 by SnoozeSoft    email                : snoozesoft@compuserve.de *********************************************************************************//********************************************************************************* *                                                                               * *   This library is free software; you can redistribute it and/or               * *   modify it under the terms of the GNU Lesser General Public                  * *   License as published by the Free Software Foundation; either                * *   version 2.1 of the License, or (at your option) any later version.          * *                                                                               * *   This library 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           * *   Lesser General Public License for more details.                             * *                                                                               * *   You should have received a copy of the GNU Lesser General Public            * *   License along with this library; if not, write to the Free Software         * *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   * *                                                                               * *********************************************************************************/package snoozesoft.systray4j;import java.io.*;import java.net.URL;import java.util.*;/** * <p>This class represents a platform specific icon file. The supported formats * are *.ico on win32, and *.xpm on KDE. Usually on KDE the dimension of the icon * is 24 x 24, and 16 x 16 or 32 x 32 on Windows.</p> * <p>Interested listeners are called whenever this icon is clicked.</p> */public class SysTrayMenuIcon{    private static String extension = ".unknown";    static    {        if( SysTrayManager.isWindows ) extension = ".ico";        else if( SysTrayManager.isLinux ) extension = ".xpm";    }    private String actionCommand;    protected File iconFile;    private Vector listeners;    /**     * <p>Creates a new <code>SysTrayMenuIcon</code> object from     * the file pointed to by the URL.</p>     * <p>This constructor makes it possible to store the icon files     * together with the application classes in a JAR file.</p>     * <p>One possibility to get the URL of an icon is through the     * getResource() method:<br><br><ul style="list-style-type:none">     * <li><code>getClass().getResource( "duke" + SysTrayMenuIcon.getExtension() )     * </code></li></ul><br>provided that the icon is in the same path where the     * class is stored.</p>     * @param icon The URL of the icon.     */    public SysTrayMenuIcon( InputStream stream )    {        this( stream, "" );    }    /**     * <p>Creates a new <code>SysTrayMenuIcon</code> object from     * the file pointed to by the URL.</p>     * <p>This constructor makes it possible to store the icon files     * together with the application classes in a JAR file.</p>     * <p>One possibility to get the URL of an icon is through the     * getResource() method:<br><br><ul style="list-style-type:none">     * <li><code>getClass().getResource( "duke" + SysTrayMenuIcon.getExtension() )     * </code></li></ul><br>provided that the icon is in the same path where the     * class is stored.</p>     * @param icon The URL of the icon.     * @param actionCommand The action command passed to the listeners.     */    public SysTrayMenuIcon( InputStream stream, String actionCommand )    {        if( stream != null ) iconFile = createTempFile( stream );        else iconFile = new File( "foo", "bar" ); // create bogus file        this.actionCommand = actionCommand;        listeners = new Vector();    }    /**     * This method returns the correct icon file extension for the     * actual platform.     * @return ".ico" ro ".xpm" depending on the platform.     */    public static String getExtension()    {        return extension;    }    /**     * <p>Creates a new <code>SysTrayMenuIcon</code> object.</p>     * <p>Since the file extension (ico/xpm) depends on the actual platform,     * it is allowed, but not necessary to specify it.</p>     * <p>Example:<br>&nbsp&nbsprealFileName: duke.ico<br>     * &nbsp&nbsppassedFileName: duke or duke.ico</p>     * @param iconFileName The associated file name.     */    public SysTrayMenuIcon( String iconFileName )    {        this( iconFileName, "" );    }    /**     * Creates a new <code>SysTrayMenuIcon</code> object.     * <p>Since the file extension (ico/xpm) depends on the actual platform,     * it is allowed, but not necessary to specify it.</p>     * <p>Example:<br>&nbsp&nbsprealFileName: duke.ico<br>     * &nbsp&nbsppassedFileName: duke or duke.ico</p>     * @param iconFileName The associated file name.     * @param actionCommand The action command passed to the listeners.     */    public SysTrayMenuIcon( String iconFileName, String actionCommand )    {        if( !iconFileName.endsWith( extension ) ) iconFileName += extension;	System.err.println(iconFileName);        iconFile = new File( iconFileName );	System.err.println( "Exists? " + iconFile.exists() );        this.actionCommand = actionCommand;        listeners = new Vector();    }    /**     * Getter for the action command.     * @return The action command passed to the listeners.     */    public String getActionCommand()    {        return actionCommand;    }    /**     * Setter for the action command.     * @param actionCommand The action command passed to the listeners.     */    public void setActionCommand( String actionCommand )    {        this.actionCommand = actionCommand;    }    /**     * Getter for the file name associated with this object.     * @return The associated file name.     */    public String getName()    {        return iconFile.getName();    }    /**     * Adds the specified listener to receive events from this icon.     * @param listener The systray menu listener.     */    public void addSysTrayMenuListener( SysTrayMenuListener listener )    {        listeners.add( listener );    }    /**     * Removes the specified listener so that it no longer receives events from this     * menu item.     * @param listener The systray menu listener.     */    public void removeSysTrayMenuListener( SysTrayMenuListener listener )    {        listeners.remove( listener );    }    protected void fireIconLeftClicked()    {        SysTrayMenuListener listener = null;        for( int i = 0; i < listeners.size(); i++ )        {            listener = ( SysTrayMenuListener ) listeners.elementAt( i );            listener.iconLeftClicked( new SysTrayMenuEvent( this, actionCommand ) );        }    }    protected void fireIconLeftDoubleClicked()    {        SysTrayMenuListener listener = null;        for( int i = 0; i < listeners.size(); i++ )        {            listener = ( SysTrayMenuListener ) listeners.elementAt( i );            listener.iconLeftDoubleClicked( new SysTrayMenuEvent( this, actionCommand ) );        }    }    private File createTempFile( InputStream in )    {        File file = null;        byte[] buffer = new byte[ 2048 ];        try        {            file = File.createTempFile( "st4j_icon_", extension );            file.deleteOnExit();            FileOutputStream out = new FileOutputStream( file );            int read = in.read( buffer );            while( read != -1 )            {                out.write( buffer, 0, read );                read = in.read( buffer );            }            in.close();            out.close();        }        catch( IOException e ) { e.printStackTrace(); }        return file;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色乱码一区二区三区88| 国产午夜亚洲精品羞羞网站| 欧美成人免费网站| 国产精品沙发午睡系列990531| 亚洲另类春色校园小说| 美女高潮久久久| 91视频在线看| 日本一区二区电影| 青青草精品视频| 欧美私人免费视频| 国产精品久久二区二区| 精品一区二区av| 这里只有精品视频在线观看| 亚洲三级理论片| 成人午夜视频在线观看| 久久综合色8888| 久久国产生活片100| 在线播放日韩导航| 亚洲6080在线| 在线观看日韩高清av| 亚洲欧洲综合另类在线| 成人动漫一区二区在线| 欧美国产乱子伦| 国产伦精品一区二区三区免费迷| 在线不卡一区二区| 亚洲一区二区三区中文字幕| 91久久免费观看| 亚洲免费毛片网站| 色哟哟日韩精品| 亚洲美腿欧美偷拍| 在线视频你懂得一区二区三区| 一区在线观看免费| 91麻豆精品视频| 亚洲视频免费在线观看| 色综合欧美在线视频区| 亚洲精品国产成人久久av盗摄| 色综合久久精品| 一区二区三区免费网站| 欧洲一区二区av| 亚洲成av人综合在线观看| 欧美色视频一区| 图片区日韩欧美亚洲| 欧美日韩视频在线观看一区二区三区| 亚洲成人资源网| 4438成人网| 国产精品一级在线| 国产女人18水真多18精品一级做 | 久久精品夜夜夜夜久久| 国产真实乱对白精彩久久| 久久久久久久久久久电影| 成人美女在线观看| 亚洲在线观看免费| 欧美一区二区三区精品| 国产最新精品精品你懂的| 国产精品乱码人人做人人爱| 91网站最新地址| 亚洲国产毛片aaaaa无费看| 日韩三级在线观看| 成人免费高清在线| 五月天激情综合| 久久综合久久综合久久| av电影天堂一区二区在线 | 亚洲一级不卡视频| 欧美岛国在线观看| 不卡视频一二三| 亚洲成人久久影院| 久久久久久久久久久久久久久99 | 国产乱码精品一区二区三区五月婷| 国产欧美日韩一区二区三区在线观看| www.亚洲精品| 久久精品国产精品青草| 最新成人av在线| 日韩亚洲国产中文字幕欧美| 成人免费看视频| 裸体一区二区三区| 亚洲欧美在线另类| 欧美r级在线观看| 色婷婷香蕉在线一区二区| 久久se这里有精品| 亚洲在线观看免费| 欧美激情一区二区在线| 91麻豆精品国产自产在线观看一区| 成人黄色777网| 麻豆国产欧美一区二区三区| 一区二区三区中文字幕电影| 国产欧美精品一区二区三区四区| 欧美精品在线一区二区| 91天堂素人约啪| 国产精品一二三四| 麻豆精品在线看| 亚洲国产日韩一区二区| 国产精品护士白丝一区av| 欧美成人video| 欧美夫妻性生活| 欧美日韩亚洲综合一区| 99国内精品久久| 国产福利一区二区三区在线视频| 免费高清在线一区| 亚洲国产sm捆绑调教视频| 日韩美女视频19| 国产精品短视频| 欧美国产综合色视频| 久久久噜噜噜久久人人看| 69堂亚洲精品首页| 欧美日韩一区二区电影| 在线日韩一区二区| 99re热这里只有精品视频| 成人午夜电影久久影院| 国产成人啪免费观看软件| 精品一区免费av| 激情久久五月天| 久久国产精品色| 蜜桃久久久久久| 麻豆成人在线观看| 激情综合五月婷婷| 激情av综合网| 国v精品久久久网| 风流少妇一区二区| 成人黄色av网站在线| 97久久超碰国产精品电影| 99久久精品国产观看| 色婷婷久久久亚洲一区二区三区| 一本一本久久a久久精品综合麻豆| av高清久久久| 欧洲视频一区二区| 7777女厕盗摄久久久| 宅男在线国产精品| 精品国产三级电影在线观看| 久久网站热最新地址| 国产欧美视频一区二区| 日韩美女精品在线| 图片区小说区区亚洲影院| 麻豆精品久久久| 国产91丝袜在线观看| 99久久久免费精品国产一区二区| 在线观看亚洲a| 日韩区在线观看| 亚洲欧美综合色| 污片在线观看一区二区| 国产制服丝袜一区| 91捆绑美女网站| 欧美一区二视频| 欧美国产禁国产网站cc| 一卡二卡三卡日韩欧美| 日韩精品乱码av一区二区| 国产一区福利在线| 麻豆成人综合网| 99精品一区二区三区| 欧美理论电影在线| 国产欧美日本一区二区三区| 一区二区三区四区高清精品免费观看 | 国产精品伊人色| 在线看国产一区二区| 久久影院午夜片一区| 中文字幕亚洲一区二区av在线| 日韩影视精彩在线| 国产91精品一区二区麻豆亚洲| 在线免费观看视频一区| 精品国精品国产尤物美女| 亚洲欧美激情插| 国模套图日韩精品一区二区| 91官网在线观看| 国产午夜精品福利| 天天免费综合色| 99精品视频在线观看| 日韩精品一区二区三区视频播放| 亚洲人成影院在线观看| 国产一二三精品| 在线成人av网站| 亚洲综合色噜噜狠狠| 国产精品一区在线观看你懂的| 欧美在线免费观看视频| 国产精品对白交换视频| 激情国产一区二区| 日韩午夜精品视频| 亚洲综合免费观看高清完整版在线| 国产久卡久卡久卡久卡视频精品| 欧美日韩免费一区二区三区| 中文字幕不卡的av| 国产一区二区三区日韩| 日韩欧美一区二区免费| 亚洲一区二区三区激情| 色综合久久综合网欧美综合网| 久久久精品人体av艺术| 毛片一区二区三区| 欧美一级二级三级蜜桃| 五月婷婷色综合| 欧美日韩精品是欧美日韩精品| 亚洲免费在线观看视频| 91一区二区在线观看| 国产精品久久久久天堂| 岛国一区二区在线观看| 国产午夜亚洲精品理论片色戒| 国产主播一区二区三区| 精品国产免费视频| 精品在线免费视频| 欧美变态口味重另类| 久久99国产精品尤物| 精品免费一区二区三区| 国内精品久久久久影院一蜜桃|