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

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

?? systraymenuicon.java

?? JBother是純Java開發的Jabber(即時消息開源軟件)客戶端。支持群組聊天
?? 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一区二区三区免费野_久草精品视频
欧美极品aⅴ影院| 日韩欧美美女一区二区三区| 日韩高清一区在线| 亚洲永久精品国产| 悠悠色在线精品| 一区二区三区免费在线观看| 亚洲欧洲三级电影| 亚洲三级久久久| 一区二区三区免费观看| 日韩毛片视频在线看| 亚洲激情第一区| 亚洲免费在线观看| 亚洲一区二区美女| 香蕉久久一区二区不卡无毒影院| 午夜在线成人av| 免费高清在线视频一区·| 另类小说图片综合网| 裸体一区二区三区| 国产精品123| 成人av手机在线观看| 91免费视频网址| 欧美日韩色一区| 久久久久久久久蜜桃| 国产精品久久久久aaaa樱花| 一区在线播放视频| 日本三级韩国三级欧美三级| 国产九九视频一区二区三区| 成人午夜精品在线| 欧美视频中文一区二区三区在线观看| 色狠狠av一区二区三区| 欧美高清视频在线高清观看mv色露露十八| 欧美日韩三级一区| 国产喂奶挤奶一区二区三区| 亚洲素人一区二区| 日本伊人色综合网| 成人在线综合网站| 欧美日韩视频在线观看一区二区三区 | 日韩欧美一二区| 久久婷婷色综合| 亚洲美女在线国产| 老司机精品视频导航| 91在线国产福利| 欧美精品一区二区在线播放| 亚洲男人的天堂av| 国产高清精品久久久久| 欧美日韩国产成人在线91| 欧美mv和日韩mv国产网站| 亚洲欧美另类久久久精品| 免费成人深夜小野草| 成人毛片视频在线观看| 欧美一区二区三区日韩| 亚洲桃色在线一区| 国产精品一区二区视频| 欧美日本视频在线| 亚洲素人一区二区| 国产福利不卡视频| 欧美成人一级视频| 婷婷久久综合九色综合绿巨人| 成人免费高清视频| 欧美v国产在线一区二区三区| 一区二区三区中文字幕在线观看| 国产一区二区不卡在线| 日韩小视频在线观看专区| 亚洲综合另类小说| 日本精品一区二区三区四区的功能| 欧美精品一区二区三区蜜臀| 日韩国产欧美视频| 日韩一区二区电影在线| 亚洲一区二区在线播放相泽| 91欧美一区二区| 国产精品护士白丝一区av| 国产福利一区二区| 久久久蜜桃精品| 国产乱人伦偷精品视频免下载| 制服丝袜亚洲色图| 午夜成人在线视频| 欧美福利视频一区| 日韩精品1区2区3区| 欧美美女视频在线观看| 亚洲一区二区三区四区的| 色综合久久中文字幕| 亚洲美女免费在线| 色国产综合视频| 午夜影视日本亚洲欧洲精品| 欧美日本韩国一区| 蜜桃免费网站一区二区三区| 欧美一级欧美一级在线播放| 日本伊人色综合网| 久久久久久影视| jizz一区二区| 亚洲一区二区三区免费视频| 欧美精品乱码久久久久久按摩| 日韩成人精品视频| www精品美女久久久tv| 国产成人自拍网| 国产精品日韩精品欧美在线| 色哟哟在线观看一区二区三区| 亚洲高清视频的网址| 欧美一二三四在线| 国产91精品免费| 亚洲精品你懂的| 91精品国产91久久久久久一区二区 | 久久99精品久久只有精品| 久久网这里都是精品| 成人av资源网站| 亚洲午夜免费视频| 久久精品欧美一区二区三区不卡| 99热精品国产| 日日夜夜精品视频天天综合网| 精品国产sm最大网站免费看 | 国产欧美一区二区精品性色| 国产69精品久久777的优势| 1区2区3区欧美| 欧美一区日本一区韩国一区| 丁香啪啪综合成人亚洲小说| 一区二区激情小说| 久久久青草青青国产亚洲免观| 99久久精品国产观看| 日本视频免费一区| 中文字幕一区二区在线观看| 欧美人妇做爰xxxⅹ性高电影| 国产精品12区| 婷婷亚洲久悠悠色悠在线播放| 国产欧美视频一区二区三区| 欧美日韩五月天| 不卡在线视频中文字幕| 蜜臀av一区二区| 一级特黄大欧美久久久| www国产成人| 欧美一级片在线看| 欧美综合欧美视频| 成人av免费观看| 国产福利一区二区三区视频在线| 五月激情六月综合| 伊人性伊人情综合网| 久久日韩粉嫩一区二区三区 | 久久精品国产亚洲一区二区三区| **性色生活片久久毛片| 26uuu国产在线精品一区二区| 欧美少妇bbb| 色综合一个色综合亚洲| 国产成人av电影在线观看| 成年人国产精品| 国产在线播放一区三区四| 午夜精品久久久久久久久久| 尤物视频一区二区| 国产精品国产自产拍高清av | 99热99精品| 丁香六月久久综合狠狠色| 国内精品久久久久影院色| 免费成人你懂的| 日韩国产欧美在线播放| 亚洲一区二区在线观看视频| 一区二区三区久久| 亚洲精品第1页| 一区二区三区日韩欧美精品| 中文字幕一区视频| 自拍偷拍欧美精品| 一区二区三区中文字幕精品精品| 亚洲免费视频中文字幕| 亚洲色图在线看| 一区二区三区.www| 午夜婷婷国产麻豆精品| 免费黄网站欧美| 国产一区在线精品| www.亚洲人| 91高清视频在线| 在线播放国产精品二区一二区四区| 欧美日韩免费一区二区三区| 欧美日韩国产中文| 日韩欧美精品三级| 久久精品一区二区三区不卡| 国产精品免费看片| 亚洲mv在线观看| 麻豆国产精品777777在线| 精品一区二区三区在线观看 | 国产精品三级久久久久三级| 一区二区中文字幕在线| 亚洲一二三四区不卡| 性做久久久久久免费观看| 美女www一区二区| 国产很黄免费观看久久| 97国产一区二区| 日韩亚洲欧美在线观看| 国产午夜精品一区二区三区嫩草| 国产精品国产三级国产有无不卡 | 亚洲精品视频在线看| 舔着乳尖日韩一区| 欧美午夜影院一区| 在线综合亚洲欧美在线视频| 久久久蜜臀国产一区二区| 伊人色综合久久天天人手人婷| 日本欧美加勒比视频| 成人美女在线视频| 欧美精选午夜久久久乱码6080| 久久久91精品国产一区二区精品| 亚洲另类中文字| 国产盗摄一区二区三区| 欧美日韩国产系列| 国产精品久久久久久久第一福利 |