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

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

?? notavailable.java

?? 網站即時通訊系統
?? JAVA
字號:
/*********************************************************************************                                  NotAvailable.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.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;/** * A small window in the lower right desktop corner for systray emulation, for * unsupported platforms. */class NotAvailable extends JFrame implements SysTrayAccess, MouseListener, ActionListener{    private GridBagLayout gridBag;    private JPanel pnl;    private HashMap menus; // SysTrayMenu container    private HashMap pops; // JPopupMenu container    private HashMap icons; // NAIcon container    private int idCounter;    private String helpMsg;    private static String linuxHelp =        "You are running SysTray for Java on Linux. If you have KDE3 installed,\n" +        "this is a supported platform. However, the native library could not be loaded\n" +        "by the JVM. To fix this, make sure the file libsystray4j.so is accessible from\n" +        "your java.library.path.";    private static String win32Help =        "You are running SysTray for Java on Windows, which is a supported platform.\n" +        "However, the native library could not be loaded by the JVM. To fix this, make sure\n" +        "the file systray4j.dll is accessible from your java.library.path.";    private static String notAvailHelp =        "SysTray for Java is not available on this platform. Currently\n" +        "supported platforms are, Linux with KDE3, and Windows.";    NotAvailable()    {        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();        if( SysTrayManager.isWindows )        {            setBounds( screenSize.width - 140, screenSize.height - 110, 110, 70 );        }        else setBounds( screenSize.width - 170, screenSize.height - 130, 110, 70 );        setDefaultCloseOperation( EXIT_ON_CLOSE );        setTitle( "SysTray for Java" );        menus = new HashMap();        pops = new HashMap();        icons = new HashMap();        idCounter = 1;        gridBag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        pnl = new JPanel( gridBag );        c.insets = new Insets( 0, 4, 0, 0 );        c.weightx = 1.0;        c.weighty = 1.0;        c.anchor = GridBagConstraints.WEST;        JButton btnHelp = new JButton( "Help" );        btnHelp.addActionListener( this );        btnHelp.setActionCommand( "-1" );        gridBag.setConstraints( btnHelp, c );        pnl.add( btnHelp );        getContentPane().add( pnl, BorderLayout.CENTER );        if( SysTrayManager.isLinux ) helpMsg = linuxHelp;        else if( SysTrayManager.isWindows ) helpMsg = win32Help;        else helpMsg = notAvailHelp;        setVisible(true);    }    public boolean isAvailable()    {        return false;    }    public void addMainMenu( SysTrayMenu menu, String iconFileName, String toolTip )    {        JPopupMenu pop = new JPopupMenu();        GridBagConstraints c = new GridBagConstraints();        c.weighty = 1.0;        c.insets = new Insets( 0, 0, 2, 2 );        c.anchor = GridBagConstraints.SOUTHEAST;        NAIcon icon = new NAIcon( menu, pop );        icon.setIcon( new ImageIcon( getClass().getResource( "rocket.gif" ) ) );        icon.addMouseListener( this );        icon.setBorder( BorderFactory.createEtchedBorder() );        icon.setToolTipText( toolTip );        gridBag.setConstraints( icon, c );        pnl.add( icon );        pnl.doLayout();        Integer key = new Integer( idCounter );        pops.put( key, pop );        menus.put( key, menu );        icons.put( key, icon );        menu.id = idCounter++;    }    public void addSubMenu( SubMenu menu )    {        JMenu pop = new JMenu();        Integer key = new Integer( idCounter );        pops.put( key, pop );        menus.put( key, menu );        menu.id = idCounter++;    }    public void setToolTip( int menuId, String tip )    {        NAIcon icon = ( NAIcon ) icons.get( new Integer( menuId ) );        icon.setToolTipText( tip );    }    public void showIcon( int menuId, boolean show )    {        NAIcon icon = ( NAIcon ) icons.get( new Integer( menuId ) );        if( show )        {            GridBagConstraints c = new GridBagConstraints();            c.weighty = 1.0;            c.insets = new Insets( 0, 0, 2, 2 );            c.anchor = GridBagConstraints.SOUTHEAST;            gridBag.setConstraints( icon, c );            pnl.add( icon );        }        else pnl.remove( icon );        pnl.doLayout();        pnl.repaint();    }    public void setIcon( int menuId, String iconFileName )    {        System.err.println( "systray4j: method not available" );    }    public void enableItem( int menuId, int itemIndex, boolean enable )    {        JPopupMenu pop = null;        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JMenu ) pop = ( ( JMenu ) obj ).getPopupMenu();        else pop = ( JPopupMenu ) obj;        Component c = pop.getComponent( pop.getComponentCount() - itemIndex - 1 );        c.setEnabled( enable );    }    public void checkItem( int menuId, int itemIndex, boolean check )    {        JPopupMenu pop = null;        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JMenu ) pop = ( ( JMenu ) obj ).getPopupMenu();        else pop = ( JPopupMenu ) obj;        JMenuItem item =            ( JMenuItem ) pop.getComponent( pop.getComponentCount() - itemIndex - 1 );        item.setSelected( check );    }    public void setItemLabel( int menuId, int itemIndex, String label )    {        JPopupMenu pop = null;        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JMenu ) pop = ( ( JMenu ) obj ).getPopupMenu();        else pop = ( JPopupMenu ) obj;        JMenuItem item =            ( JMenuItem ) pop.getComponent( pop.getComponentCount() - itemIndex - 1 );        item.setText( label );    }    public void addItem( int menuId,                         int itemIndex,                         String label,                         boolean checkable,                         boolean check,                         boolean enable )    {        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JPopupMenu )        {            JPopupMenu pop = ( JPopupMenu ) obj;            int index = pop.getComponentCount() - itemIndex;            if( label.equals( "#SEP" ) ) pop.insert( new JPopupMenu.Separator(), index );            else if( label.startsWith( "#SUB<" ) )            {                Integer key = new Integer( label.substring( 5, label.indexOf( ">" ) ) );                JMenu submenu = ( JMenu ) pops.get( key );                submenu.setEnabled( enable );                submenu.setText(                    label.substring( label.indexOf( "><" ) + 2, label.length() - 1 ) );                pop.insert( submenu, index );            }            else            {                JMenuItem item = null;                if( checkable )                {                    item = new JCheckBoxMenuItem( label );                    item.setSelected( check );                }                else item = new JMenuItem( label );                item.setActionCommand( String.valueOf( menuId ) );                item.addActionListener( this );                item.setEnabled( enable );                pop.insert( item, index );            }        }        else        {            JMenu pop = ( JMenu ) obj;            int index = pop.getItemCount() - itemIndex;            if( label.equals( "#SEP" ) ) pop.insertSeparator( index );            else if( label.startsWith( "#SUB<" ) )            {                Integer key = new Integer( label.substring( 5, label.indexOf( ">" ) ) );                JMenu submenu = ( JMenu ) pops.get( key );                submenu.setEnabled( enable );                submenu.setText(                    label.substring( label.indexOf( "><" ) + 2, label.length() - 1 ) );                pop.insert( submenu, index );            }            else            {                JMenuItem item = null;                if( checkable )                {                    item = new JCheckBoxMenuItem( label );                    item.setSelected( check );                }                else item = new JMenuItem( label );                item.setActionCommand( String.valueOf( menuId ) );                item.addActionListener( this );                item.setEnabled( enable );                pop.insert( item, index );            }        }    }    public void removeItem( int menuId, int itemIndex )    {        JPopupMenu pop = null;        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JMenu ) pop = ( ( JMenu ) obj ).getPopupMenu();        else pop = ( JPopupMenu ) obj;        pop.remove( pop.getComponentCount() - itemIndex - 1 );    }    public void removeAll( int menuId )    {        JPopupMenu pop = null;        Object obj = pops.get( new Integer( menuId ) );        if( obj instanceof JMenu ) pop = ( ( JMenu ) obj ).getPopupMenu();        else pop = ( JPopupMenu ) obj;        pop.removeAll();    }    public void dispose()    {        dispose();    }    public void mouseClicked( MouseEvent event )    {        NAIcon icon = ( NAIcon ) event.getSource();        if( event.getButton() == MouseEvent.BUTTON1 )        {            icon.menu.iconLeftClicked( event.getClickCount() == 2 );        }        else if( event.getButton() == MouseEvent.BUTTON3 )        {            Dimension size = icon.pop.getSize();            icon.pop.show( icon, event.getX(), event.getY() );            size = icon.pop.getSize();            icon.pop.show( icon, event.getX() - size.width, event.getY() - size.height );        }    }    public void actionPerformed( ActionEvent event )    {        JPopupMenu pop = null;        Integer key = new Integer( event.getActionCommand() );        Object obj = menus.get( key );        if( obj instanceof SysTrayMenu )        {            SysTrayMenu menu = ( SysTrayMenu ) obj;            pop = ( JPopupMenu ) pops.get( key );            int index = pop.getComponentCount() -                pop.getComponentIndex( ( Component ) event.getSource() );            menu.menuItemSelected( index - 1 );        }        else if( obj instanceof SubMenu )        {            SubMenu menu = ( SubMenu ) obj;            pop = ( ( JMenu ) pops.get( key ) ).getPopupMenu();            int index = pop.getComponentCount() -                pop.getComponentIndex( ( Component ) event.getSource() );            menu.menuItemSelected( index - 1 );        }        else        {            String message = helpMsg;            if( SysTrayManager.isWindows || SysTrayManager.isLinux )            {                String path = "java.library.path = ";                String token = "";                int lineLength = path.length();                String sep = System.getProperty( "path.separator" );                String pathLong = System.getProperty( "java.library.path" );                StringTokenizer tok = new StringTokenizer( pathLong, sep, true );                while( tok.hasMoreTokens() )                {                    if( token.equals( sep ) )                    {                        if( lineLength > 50 )                        {                            path += "\n";                            lineLength = 0;                        }                    }                    token = tok.nextToken();                    path += token;                    lineLength += token.length();                }                message += "\n\n" + path;            }            JOptionPane.showMessageDialog(                null, message, "Help", JOptionPane.INFORMATION_MESSAGE );        }    }    private class NAIcon extends JLabel    {        SysTrayMenu menu;        JPopupMenu pop;        NAIcon( SysTrayMenu menu, JPopupMenu pop )        {            this.menu = menu;            this.pop = pop;        }    }    public String getHelp() { return null; }    public void mouseEntered( MouseEvent event ) {}    public void mouseExited( MouseEvent event ) {}    public void mousePressed( MouseEvent event ) {}    public void mouseReleased( MouseEvent event ) {}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
bt欧美亚洲午夜电影天堂| 在线免费观看日韩欧美| 美日韩一级片在线观看| 91电影在线观看| 亚洲欧洲综合另类| 色综合天天综合色综合av | 久久亚洲二区三区| 日本美女一区二区三区视频| 欧美日本乱大交xxxxx| 污片在线观看一区二区| 欧美日韩精品欧美日韩精品一| 亚洲国产一二三| 欧美日韩一区二区三区高清| 亚洲国产欧美一区二区三区丁香婷| 91黄色激情网站| 香港成人在线视频| 欧美一区二区久久久| 麻豆精品视频在线| 精品国产a毛片| 国产精品蜜臀在线观看| 丁香激情综合五月| 国产精品久久久久久久久久免费看 | 午夜不卡在线视频| 8x8x8国产精品| 久久国产生活片100| 欧美精品一区二区三| 国产精品一区二区在线观看网站 | 91精品婷婷国产综合久久竹菊| 日韩—二三区免费观看av| 欧美一级高清大全免费观看| 久久精品久久99精品久久| 久久综合视频网| 成人av在线一区二区三区| 亚洲欧美激情小说另类| 欧美日韩国产精品自在自线| 久久精品99久久久| 国产日产欧美一区二区三区| 91亚洲男人天堂| 亚洲成人福利片| 欧美电视剧在线看免费| 懂色av一区二区三区免费观看| 国产精品成人午夜| 欧美日韩国产经典色站一区二区三区 | 欧美视频一区二区三区在线观看| 五月婷婷综合在线| 精品国产污网站| 成人av网站免费| 亚洲影视资源网| 欧美大胆人体bbbb| 成人午夜在线播放| 亚洲一级电影视频| 欧美mv日韩mv国产网站app| 成人午夜免费视频| 亚洲成人777| 久久久久久亚洲综合影院红桃| 菠萝蜜视频在线观看一区| 亚洲国产aⅴ成人精品无吗| 2023国产一二三区日本精品2022| 91在线视频官网| 蜜臀精品一区二区三区在线观看| 久久久天堂av| 欧日韩精品视频| 国产精品白丝av| 亚洲午夜激情av| 国产欧美日本一区视频| 欧美性生活大片视频| 国产精品一级在线| 亚洲国产精品久久人人爱| 久久久久久97三级| 欧美三级在线视频| 丁香婷婷综合激情五月色| 亚洲午夜久久久| 国产成人久久精品77777最新版本| 亚洲嫩草精品久久| 精品久久久久香蕉网| 91福利资源站| 国产v综合v亚洲欧| 免费看黄色91| 一区二区三区在线看| 久久久久久9999| 69久久夜色精品国产69蝌蚪网| www.成人网.com| 狠狠色狠狠色综合| 无码av免费一区二区三区试看 | 国产三级一区二区| 在线播放91灌醉迷j高跟美女 | 日本一区二区三区四区| 884aa四虎影成人精品一区| 最近中文字幕一区二区三区| 日韩一区二区在线看| 色综合久久中文字幕综合网| 国产一区二区三区免费看| 日韩黄色一级片| 一区二区三区精品| 国产精品久久久久久久久免费相片 | 555夜色666亚洲国产免| 色综合天天综合在线视频| 国产69精品一区二区亚洲孕妇| 美女一区二区视频| 亚洲成人av一区二区三区| 亚洲欧美综合另类在线卡通| 国产视频一区二区在线观看| 日韩一卡二卡三卡国产欧美| 欧美日韩免费一区二区三区 | 亚洲图片欧美一区| 国产精品美女一区二区三区| 精品动漫一区二区三区在线观看| 欧美卡1卡2卡| 欧美在线不卡视频| 91亚洲精品久久久蜜桃| 成人午夜在线免费| 国产精品乡下勾搭老头1| 极品少妇xxxx偷拍精品少妇| 日本美女视频一区二区| 日韩二区三区四区| 久久久久久影视| 欧美年轻男男videosbes| 色悠悠亚洲一区二区| 成人激情免费视频| 成人免费视频国产在线观看| 国产一区二三区好的| 国产专区综合网| 国产一区二区毛片| 国产精品系列在线播放| 国产综合久久久久久鬼色| 国模娜娜一区二区三区| 九一九一国产精品| 久久99国产精品免费| 久99久精品视频免费观看| 久久99精品久久久久婷婷| 久久99久久久久| 老色鬼精品视频在线观看播放| 蜜桃视频在线观看一区| 美女视频黄免费的久久| 欧美一级生活片| 欧美精品视频www在线观看| 91超碰这里只有精品国产| 日韩午夜激情免费电影| 日韩免费一区二区三区在线播放| 欧美videossexotv100| 久久先锋影音av鲁色资源| 久久精品夜色噜噜亚洲aⅴ| 国产偷国产偷精品高清尤物| 国产精品乱人伦中文| 亚洲三级视频在线观看| 亚洲午夜精品一区二区三区他趣| 丝袜亚洲另类丝袜在线| 麻豆精品一区二区三区| 国产一区二区在线观看视频| 高清不卡在线观看av| 色综合久久中文字幕| 欧美日韩国产综合久久 | 91久久精品国产91性色tv| 欧美亚洲一区三区| 91精品婷婷国产综合久久性色| 日韩三级伦理片妻子的秘密按摩| 久久综合久久99| 成人黄色小视频| 99国产精品视频免费观看| 欧美在线高清视频| 欧美一级黄色录像| 国产女人aaa级久久久级| 亚洲日本va午夜在线电影| 亚洲综合偷拍欧美一区色| 日韩黄色免费电影| 国产精品综合久久| 91色在线porny| 3d动漫精品啪啪1区2区免费| 久久久午夜精品| 亚洲欧美另类在线| 热久久久久久久| 国产成人免费在线| 欧美色国产精品| 久久婷婷成人综合色| 日韩一区日韩二区| 日本怡春院一区二区| 国产成人精品免费| 欧美日韩一区视频| 精品成人免费观看| 亚洲视频免费在线观看| 美女网站在线免费欧美精品| 成人精品电影在线观看| 欧美日韩高清影院| 国产三级一区二区| 亚洲成人av一区二区| 丁香婷婷综合五月| 欧美丰满嫩嫩电影| 国产精品免费aⅴ片在线观看| 天堂在线一区二区| 成人在线综合网| 91精品久久久久久久99蜜桃| 国产精品人妖ts系列视频| 天天av天天翘天天综合网| 成人动漫一区二区三区| 欧美一区二区三区思思人| 一区在线观看免费| 黄色资源网久久资源365| 日本高清不卡在线观看| 久久亚洲欧美国产精品乐播 | 欧美性感一类影片在线播放|