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

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

?? notavailable.java

?? JBother是純Java開發的Jabber(即時消息開源軟件)客戶端。支持群組聊天
?? 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一区二区三区免费野_久草精品视频
国产大片一区二区| 欧美精品乱码久久久久久| 一区精品在线播放| 精品国产一区二区三区不卡 | 三级成人在线视频| 1000部国产精品成人观看| 日韩福利视频网| 免费成人美女在线观看| 久久99国内精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 免费成人小视频| 91黄视频在线| 精品视频在线免费| 日韩免费观看高清完整版 | 成人激情动漫在线观看| 亚洲成人你懂的| 亚洲色图19p| 亚洲一区二区三区免费视频| 一区二区三区四区乱视频| 一区二区三区免费网站| 国产成人精品免费一区二区| 日韩一区二区三免费高清| 久久一区二区三区国产精品| 欧美国产精品一区| 一区二区三区欧美在线观看| 成人综合在线观看| 欧美日韩午夜在线| 一区二区国产视频| 色婷婷综合在线| 91精品黄色片免费大全| 国产精品系列在线| 五月天丁香久久| 成人免费电影视频| 国产精品毛片久久久久久久| 国产不卡视频一区二区三区| 欧美色图激情小说| 性久久久久久久久久久久| 在线亚洲精品福利网址导航| 久久精品夜色噜噜亚洲aⅴ| 一级精品视频在线观看宜春院 | 国产精品亚洲第一区在线暖暖韩国| 国产suv精品一区二区883| 久久久噜噜噜久噜久久综合| 亚洲综合一二区| 日本高清不卡一区| 亚洲自拍偷拍欧美| 欧美高清激情brazzers| 日av在线不卡| 欧美精品一区二区三| 国产成人免费视频网站| 日韩一区中文字幕| 欧美怡红院视频| 1024成人网| 欧美日韩国产一级二级| 亚洲天堂av一区| 欧美日韩精品福利| 经典三级视频一区| 亚洲婷婷综合色高清在线| 欧美亚洲综合久久| 成人av一区二区三区| 国产精品久久久久久久裸模| 久久se精品一区二区| 欧美日韩免费在线视频| 久久超碰97中文字幕| 亚洲欧洲三级电影| 777午夜精品视频在线播放| 精品一区二区三区不卡| 国产精品久久久久婷婷二区次| 色乱码一区二区三区88| 日韩av中文在线观看| 日本一区二区视频在线| 国产一区不卡在线| 久久影视一区二区| 色天天综合久久久久综合片| 免费成人在线影院| 亚洲激情自拍偷拍| 色先锋资源久久综合| 久久99深爱久久99精品| 中文字幕在线视频一区| 欧美一区二区视频在线观看2020| 午夜精品久久久久久久久| 久久精品一区八戒影视| 欧美三级视频在线观看| 丁香婷婷综合色啪| 热久久国产精品| 樱花草国产18久久久久| 国产欧美一区二区精品久导航 | 国产精品66部| 五月天亚洲婷婷| 亚洲女厕所小便bbb| 色av综合在线| 国产精品综合视频| 日韩精品色哟哟| 一区二区三区精品视频| 久久先锋影音av| 欧美一区二区日韩| 欧美日韩视频在线第一区| 欧美精选一区二区| 91影院在线免费观看| 亚洲欧美日韩国产手机在线| 欧美精品一区二区三区四区| 在线不卡中文字幕播放| 在线观看免费成人| 91福利视频在线| 91小视频免费观看| 99在线精品观看| 亚洲成人综合视频| 亚洲综合一区在线| 一区二区视频在线看| 18欧美亚洲精品| 综合电影一区二区三区| 中文字幕在线一区免费| 国产精品污网站| 国产精品欧美极品| 国产精品久久久久久亚洲伦 | 777午夜精品免费视频| 欧美羞羞免费网站| 在线观看视频一区二区欧美日韩| 色综合久久综合网| 在线欧美日韩国产| 在线视频欧美精品| 欧美日韩亚洲国产综合| 欧美肥胖老妇做爰| 欧美一二三区在线| 26uuu欧美| 欧美极品另类videosde| 亚洲国产精品ⅴa在线观看| 国产精品视频第一区| 国产精品成人一区二区艾草| 亚洲视频资源在线| 亚洲午夜一区二区| 国产喷白浆一区二区三区| 亚洲午夜一二三区视频| 日日夜夜精品视频天天综合网| 日韩综合小视频| 国产精品一区免费在线观看| www.亚洲色图.com| 欧美亚日韩国产aⅴ精品中极品| 欧美性videosxxxxx| 日韩情涩欧美日韩视频| 中文字幕的久久| 亚洲国产aⅴ天堂久久| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲美女免费视频| 日韩有码一区二区三区| 精品一区二区影视| www.亚洲精品| 欧美日韩精品欧美日韩精品| 26uuu久久综合| 亚洲激情五月婷婷| 狠狠色丁香久久婷婷综合_中| 亚洲高清视频的网址| 精品中文av资源站在线观看| 北条麻妃国产九九精品视频| 欧美亚洲一区二区在线| 久久精品在线免费观看| 亚洲一区二区三区四区五区黄| 免费成人结看片| 一本久久精品一区二区| 日韩久久精品一区| 亚洲精品成人精品456| 韩国欧美国产1区| 91福利精品视频| 久久九九久精品国产免费直播| 亚洲一区二区在线免费看| 国产一区二区在线看| 欧美亚洲国产一区二区三区va| 久久综合色8888| 天天综合网天天综合色| 99久久久久免费精品国产| 91丨九色丨黑人外教| 精品奇米国产一区二区三区| 久久先锋资源网| 日本va欧美va精品发布| 94色蜜桃网一区二区三区| 久久久久久久综合色一本| 午夜欧美电影在线观看| 91天堂素人约啪| 国产精品欧美一区喷水| 国内精品免费**视频| 777久久久精品| 樱花影视一区二区| 91丨九色porny丨蝌蚪| 久久久.com| 国产精品综合网| 久久久电影一区二区三区| 国产成a人无v码亚洲福利| 日韩欧美三级在线| 三级久久三级久久| 欧美老女人在线| 亚洲.国产.中文慕字在线| 欧美性一区二区| 亚洲一区二三区| 精品视频全国免费看| 亚洲福中文字幕伊人影院| 色婷婷精品大在线视频| 亚洲另类春色国产| 91精品福利在线| 午夜在线电影亚洲一区| 欧美日韩一区高清|