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

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

?? testntservicenamesbean.java

?? 無線網絡管理
?? JAVA
字號:
// NAME//      $RCSfile: testNTServiceNamesBean.java,v $// DESCRIPTION//      [given below in javadoc format]// DELTA//      $Revision: 1.4 $// CREATED//      $Date: 2006/01/17 17:43:55 $// COPYRIGHT//      Westhawk Ltd// TO DO///* * Copyright (C) 1998 - 2006 by Westhawk Ltd * * Permission to use, copy, modify, and distribute this software * for any purpose and without fee is hereby granted, provided * that the above copyright notices appear in all copies and that * both the copyright notice and this permission notice appear in * supporting documentation. * This software is provided "as is" without express or implied * warranty. * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a> */ package uk.co.westhawk.examplev1;import java.awt.*; import javax.swing.*;import java.util.*;import java.awt.event.*;import uk.co.westhawk.snmp.beans.*;import uk.co.westhawk.snmp.stack.*;import java.beans.*;/** * <p> * The class testNTServiceNamesBean demonstrates the use of some of the beans * in the uk.co.westhawk.snmp.beans packages. It shows a UI in which the * user can configure the bean properties. * </p> * * <p> * The user can configure the host name, the port number, the community * name and the update interval. When the action button is pressed * NTServiceNamesBean is activated. Via the PropertyChangeEvent it * will provide the UI with the list of current services. * </p> * * <p> * The "Try it" button activates the IsHostReachableBean, who will probe * the configured host and signals the UI since when the host was up. * </p> * * <p> * The user can select one service. The class OneNTService will * provide the UI with a dialog with more information about the * service. * </p> * * @see OneNTService * @see uk.co.westhawk.snmp.beans.NTServiceNamesBean * @see uk.co.westhawk.snmp.beans.IsHostReachableBean * * @author <a href="mailto:snmp@westhawk.co.uk">Birgit Arkesteijn</a> * @version $Revision: 1.4 $ $Date: 2006/01/17 17:43:55 $ */public class testNTServiceNamesBean extends JPanel         implements ActionListener, PropertyChangeListener,        WindowListener{    private static final String     version_id =        "@(#)$Id: testNTServiceNamesBean.java,v 1.4 2006/01/17 17:43:55 birgit Exp $ Copyright Westhawk Ltd";    GridBagLayout gridBagLayout1 = new GridBagLayout();    JLabel label1 = new JLabel(" ");    JLabel label2 = new JLabel(" ");    JLabel label3 = new JLabel(" ");    JTextField hostText = new JTextField();    JTextField portText = new JTextField();    JLabel serviceLabel = new JLabel(" ");    java.awt.List serviceList = new java.awt.List();    uk.co.westhawk.snmp.beans.NTServiceNamesBean serviceBean = new uk.co.westhawk.snmp.beans.NTServiceNamesBean();    JLabel label5 = new JLabel(" ");    JTextField communityText = new JTextField();    JButton tryButton = new JButton();    JLabel messageLabel = new JLabel(" ");    JButton showButton = new JButton();    JLabel label7 = new JLabel(" ");    JTextField intervalText = new JTextField();    uk.co.westhawk.snmp.beans.IsHostReachableBean reachableBean = new uk.co.westhawk.snmp.beans.IsHostReachableBean();    JButton actionButton = new JButton();//Get a parameter value        //Construct the application        public testNTServiceNamesBean()    {    }//Initialize the application        public void init()    {        try        {            jbInit();        }        catch (Exception e)        {            e.printStackTrace();        }    }//Component initialization        private void jbInit() throws Exception    {        label1.setText(" NT Server ");        label2.setText(" Port ");        label3.setText(" # Services ");        label5.setText(" Community ");        label7.setText(" Interval ");        hostText.setBackground(Color.white);        hostText.setText("iffish");        hostText.addActionListener(this);        portText.setBackground(Color.white);        portText.setText("" + SnmpContextBasisFace.DEFAULT_PORT);        portText.addActionListener(this);        serviceList.setBackground(Color.yellow);        serviceBean.setPort(SnmpContextBasisFace.DEFAULT_PORT);        serviceBean.setHost("iffish.westhawk.co.uk");        serviceList.addActionListener(this);        communityText.setBackground(Color.white);        communityText.setText("public");        communityText.addActionListener(this);        tryButton.setText("Try connection");        tryButton.addActionListener(this);        serviceLabel.setBackground(Color.white);        messageLabel.setBackground(Color.white);        serviceLabel.setOpaque(true);        messageLabel.setOpaque(true);        showButton.setText("Show Service");        showButton.addActionListener(this);        intervalText.setBackground(Color.white);        intervalText.setText("30000");        actionButton.setText("Action");        actionButton.addActionListener(this);        intervalText.addActionListener(this);        reachableBean.addPropertyChangeListener(this);        serviceBean.addPropertyChangeListener(this);        this.setLayout(gridBagLayout1);        this.setSize(400,300);        this.add(label1,             getGridBagConstraints2(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(label2,             getGridBagConstraints2(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(label5,             getGridBagConstraints2(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(label7,             getGridBagConstraints2(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(tryButton,             getGridBagConstraints2(0, 4, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(10, 10, 10, 10), 0, 0));        this.add(label3,             getGridBagConstraints2(0, 5, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.BOTH,             new Insets(0, 0, 0, 0), 0, 0));        this.add(serviceList,             getGridBagConstraints2(0, 6, 2, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH,             new Insets(0, 0, 0, 0), 0, 0));        this.add(showButton,             getGridBagConstraints2(0, 7, 2, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE,             new Insets(10, 10, 10, 10), 0, 0));        this.add(messageLabel,             getGridBagConstraints2(0, 8, 2, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 10, 0), 0, 0));        this.add(hostText,             getGridBagConstraints2(1, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(portText,             getGridBagConstraints2(1, 1, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(communityText,             getGridBagConstraints2(1, 2, 1, 1, 1.0, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.BOTH,             new Insets(0, 0, 0, 0), 0, 0));        this.add(intervalText,             getGridBagConstraints2(1, 3, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(0, 0, 0, 0), 0, 0));        this.add(actionButton,             getGridBagConstraints2(1, 4, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,             new Insets(10, 10, 10, 10), 0, 0));        this.add(serviceLabel,             getGridBagConstraints2(1, 5, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH,             new Insets(0, 0, 0, 0), 0, 0));    }//Main method    public static void main(String[] args)    {        testNTServiceNamesBean application = new testNTServiceNamesBean();        application.init();        JFrame frame = new JFrame();        frame.setTitle(application.getClass().getName());        frame.getContentPane().add(application, BorderLayout.CENTER);        frame.setSize(400,320);        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);        frame.setVisible(true);        frame.addWindowListener(application);    }        public void actionPerformed(ActionEvent e)    {        Object src = e.getSource();        if (src == hostText)        {            hostText_actionPerformed(e);        }        else if (src == portText)        {            portText_actionPerformed(e);        }        else if (src == communityText)        {            communityText_actionPerformed(e);        }        else if (src == serviceList)        {            serviceList_actionPerformed(e);        }        else if (src == tryButton)        {            tryButton_actionPerformed(e);        }        else if (src == showButton)        {            showButton_actionPerformed(e);        }        else if (src == actionButton)        {            actionButton_actionPerformed(e);        }        else if (src == intervalText)        {            intervalText_actionPerformed(e);        }    }    public void propertyChange(PropertyChangeEvent e)    {        Object src = e.getSource();        if (src == reachableBean)        {            reachableBean_propertyChange(e);        }        else if (src == serviceBean)        {            serviceBean_propertyChange(e);        }    }    void hostText_actionPerformed(ActionEvent e)    {        serviceBean.setHost(hostText.getText());    }    void portText_actionPerformed(ActionEvent e)    {        serviceBean.setPort(portText.getText());    }    void communityText_actionPerformed(ActionEvent e)    {        serviceBean.setCommunityName(communityText.getText());    }    void intervalText_actionPerformed(ActionEvent e)    {        serviceBean.setUpdateInterval(intervalText.getText());    }    void tryButton_actionPerformed(ActionEvent e)    {        messageLabel.setText(" ");        reachableBean.setHost(hostText.getText());        reachableBean.setPort(portText.getText());        reachableBean.setCommunityName(communityText.getText());        try        {            reachableBean.action();        }        catch (java.io.IOException exc)        {            messageLabel.setText("IOException " + exc.getMessage());        }        catch (uk.co.westhawk.snmp.stack.PduException exc)        {            messageLabel.setText("PduException " + exc.getMessage());        }    }    void serviceBean_propertyChange(PropertyChangeEvent e)    {        Enumeration names = serviceBean.getNames();        int nr = serviceBean.getCount();        serviceLabel.setText(String.valueOf(nr));        if (serviceList.getItemCount() > 0)        {            serviceList.removeAll();        }        while (names.hasMoreElements())        {            String name = (String) names.nextElement();            serviceList.add(name);        }    }    void reachableBean_propertyChange(PropertyChangeEvent e)    {        messageLabel.setText(reachableBean.getMessage());    }    private void showOneNTService()    {        String itemStr = serviceList.getSelectedItem();        if (itemStr != null && itemStr.length() > 0)        {            String index = serviceBean.getIndex(itemStr);            OneNTService oneNTService = new            OneNTService(testNcdPerfDataBean.getFrame(this),                 hostText.getText(), portText.getText(),                 communityText.getText(), index, intervalText.getText());        }    }    void serviceList_actionPerformed(ActionEvent e)    {        showOneNTService();    }    void showButton_actionPerformed(ActionEvent e)    {        showOneNTService();    }    void actionButton_actionPerformed(ActionEvent e)    {        messageLabel.setText(" ");        serviceLabel.setText(" ");        if (serviceList.getItemCount() > 0)        {            serviceList.removeAll();        }        serviceBean.setHost(hostText.getText());        serviceBean.setPort(portText.getText());        serviceBean.setCommunityName(communityText.getText());        serviceBean.setUpdateInterval(intervalText.getText());        serviceBean.action();    }    GridBagConstraints getGridBagConstraints2(            int x, int y, int w, int h, double wx, double wy,            int anchor, int fill,            Insets ins, int ix, int iy)    {        GridBagConstraints gc = new GridBagConstraints();        gc.gridx = x;        gc.gridy = y;        gc.gridwidth = w;        gc.gridheight = h;        gc.weightx = wx;        gc.weighty = wy;        gc.anchor = anchor;        gc.fill = fill;        gc.insets = ins;        gc.ipadx = ix;        gc.ipady = iy;        return gc;    }public void windowActivated(WindowEvent evt){}public void windowDeactivated(WindowEvent evt){}public void windowClosing(WindowEvent evt){    System.exit(0);}public void windowClosed(WindowEvent evt){}public void windowIconified(WindowEvent evt){}public void windowDeiconified(WindowEvent evt){}public void windowOpened(WindowEvent evt){} }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
婷婷丁香久久五月婷婷| 精品国产91乱码一区二区三区| 国产欧美日韩精品一区| 国产综合色视频| 久久久久久久网| 成人精品在线视频观看| 国产精品高潮久久久久无| av不卡免费在线观看| 亚洲日本丝袜连裤袜办公室| 日本黄色一区二区| 偷拍一区二区三区| 久久丝袜美腿综合| 成人免费毛片app| 亚洲最大的成人av| 欧美一区二区三区免费视频| 激情国产一区二区| 中文字幕制服丝袜一区二区三区 | 久久综合色之久久综合| 国产成人综合亚洲网站| 日韩理论片一区二区| 在线免费观看成人短视频| 青娱乐精品在线视频| 国产三级精品三级在线专区| 99免费精品在线| 日韩激情中文字幕| 国产女人18毛片水真多成人如厕 | 欧美不卡123| 成人午夜免费电影| 日韩精品久久久久久| 欧美国产日产图区| 欧美日韩国产中文| 国产福利不卡视频| 亚洲成人精品一区| 欧美激情在线观看视频免费| 欧美一a一片一级一片| 美女www一区二区| 亚洲欧美视频一区| 精品成人免费观看| 欧美无砖砖区免费| 福利91精品一区二区三区| 亚洲va欧美va人人爽午夜| 欧美经典三级视频一区二区三区| 欧美日韩国产一区二区三区地区| 国产精品正在播放| 日本aⅴ亚洲精品中文乱码| 亚洲天堂av老司机| 26uuu国产在线精品一区二区| 91国偷自产一区二区三区成为亚洲经典 | 中文字幕亚洲电影| 日韩一区二区影院| 一级做a爱片久久| 不卡的看片网站| 日本美女一区二区三区视频| 中文字幕一区二区三区在线播放| 欧美一区二区三区影视| 色综合咪咪久久| 国产成人精品在线看| 美国三级日本三级久久99| 亚洲午夜私人影院| 中文字幕色av一区二区三区| 久久综合色之久久综合| 日韩一区二区三区四区五区六区| 色屁屁一区二区| 不卡欧美aaaaa| 国产iv一区二区三区| 精品一二三四区| 秋霞成人午夜伦在线观看| 视频一区在线视频| 亚洲一区二区三区自拍| 亚洲免费av网站| 中文字幕一区二区三区在线不卡| 国产日韩一级二级三级| 国产午夜精品久久久久久久 | 一本大道久久a久久综合婷婷 | 裸体一区二区三区| 青青草伊人久久| 天天综合日日夜夜精品| 亚洲国产成人91porn| 亚洲国产一区二区在线播放| 一区二区三区在线不卡| 18成人在线视频| 亚洲欧美日韩在线| 夜夜亚洲天天久久| 亚洲一区在线电影| 亚洲成av人片在www色猫咪| 亚洲va欧美va人人爽午夜| 亚洲福利一区二区| 五月婷婷综合在线| 日本中文在线一区| 国产一本一道久久香蕉| 国产不卡在线播放| 99久久国产综合精品色伊| 91亚洲精品一区二区乱码| 91免费国产在线观看| 日本丰满少妇一区二区三区| 欧美专区在线观看一区| 91精品国产综合久久精品图片| 欧美一级艳片视频免费观看| 精品精品国产高清a毛片牛牛 | 国产精品视频免费| 一区二区三区在线影院| 午夜影院在线观看欧美| 加勒比av一区二区| 国产成人综合亚洲91猫咪| 91免费国产在线观看| 欧美精品一二三四| 精品福利二区三区| 国产精品久久久久aaaa樱花| 亚洲国产成人91porn| 久国产精品韩国三级视频| 成人av在线播放网站| 欧美日韩一二三区| 久久亚洲精精品中文字幕早川悠里| 国产精品久久久久久久久动漫| 亚洲综合精品自拍| 欧美三级日韩三级国产三级| 777奇米四色成人影色区| 久久久久久久久久久久电影 | 亚洲免费资源在线播放| 午夜精彩视频在线观看不卡| 麻豆国产91在线播放| 99re热视频精品| 91精品婷婷国产综合久久性色 | 亚洲色图清纯唯美| 奇米亚洲午夜久久精品| 成人av电影在线观看| 欧美精品在线视频| 亚洲欧洲国产日韩| 久久99国产精品免费网站| 一道本成人在线| 久久五月婷婷丁香社区| 亚洲伊人色欲综合网| 国产成人亚洲精品青草天美| 欧美精品在欧美一区二区少妇| 欧美国产综合色视频| 老鸭窝一区二区久久精品| 色哟哟精品一区| 久久精品亚洲乱码伦伦中文| 日韩不卡在线观看日韩不卡视频| 高清视频一区二区| 日韩欧美国产综合一区 | 欧美色图片你懂的| 日韩久久久精品| 性欧美疯狂xxxxbbbb| 成人av免费在线播放| 欧美成人在线直播| 亚洲电影你懂得| 99精品视频中文字幕| 精品国精品自拍自在线| 五月天网站亚洲| 91捆绑美女网站| 中文字幕不卡在线观看| 精品在线观看免费| 制服丝袜中文字幕亚洲| 亚洲一区二区三区视频在线| 成人ar影院免费观看视频| 蜜桃精品视频在线| 欧美在线free| 亚洲三级在线免费| 99久久精品国产观看| 国产女同互慰高潮91漫画| 国产精品亚洲成人| 国产亚洲综合在线| 国产一区二区三区四区在线观看 | 色婷婷综合在线| 亚洲视频中文字幕| 91在线一区二区| 亚洲欧美另类图片小说| www.色精品| 亚洲三级在线免费观看| 一本大道久久a久久综合婷婷| 亚洲天堂成人网| 91激情五月电影| 亚洲一二三区在线观看| 91麻豆swag| 亚洲国产精品一区二区久久恐怖片 | 国产福利精品一区二区| 国产日韩精品一区| 成人午夜电影网站| 日韩一区有码在线| 91视频在线观看| 亚洲人吸女人奶水| 欧美在线观看18| 日本成人超碰在线观看| 日韩女优制服丝袜电影| 经典三级视频一区| 国产精品久久看| 色婷婷综合久久久中文字幕| 樱花草国产18久久久久| 成人免费在线观看入口| 色老汉av一区二区三区| 亚洲6080在线| 26uuu亚洲综合色| 成人网在线免费视频| 亚洲色图在线视频| 欧美日韩五月天| 国内精品第一页| 亚洲欧洲一区二区在线播放| 欧美日韩日本视频| 国产永久精品大片wwwapp|