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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? testntusernamesbean.java

?? 無(wú)線網(wǎng)絡(luò)管理
?? JAVA
字號(hào):
// NAME//      $RCSfile: testNTUserNamesBean.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 testNTUserNamesBean 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 * NTUserNamesBean is activated. Via the PropertyChangeEvent it * will provide the UI with the list of current names. * </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> * * @see uk.co.westhawk.snmp.beans.NTUserNamesBean * @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 testNTUserNamesBean extends JPanel         implements ActionListener, PropertyChangeListener,        WindowListener{    private static final String     version_id =        "@(#)$Id: testNTUserNamesBean.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 nameLabel = new JLabel(" ");    java.awt.List nameList = new java.awt.List();    uk.co.westhawk.snmp.beans.NTUserNamesBean nameBean = new uk.co.westhawk.snmp.beans.NTUserNamesBean();    JLabel label5 = new JLabel(" ");    JTextField communityText = new JTextField();    JButton tryButton = new JButton();    JLabel messageLabel = new JLabel(" ");    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();    //Construct the application        public testNTUserNamesBean()    {    }//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(" # Users ");        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);        nameList.setBackground(Color.yellow);        nameBean.setPort(SnmpContextBasisFace.DEFAULT_PORT);        nameBean.setHost("iffish.westhawk.co.uk");        communityText.setBackground(Color.white);        communityText.setText("public");        communityText.addActionListener(this);        tryButton.setText("Try connection");        tryButton.addActionListener(this);        nameLabel.setBackground(Color.white);        messageLabel.setBackground(Color.white);        nameLabel.setOpaque(true);        messageLabel.setOpaque(true);        intervalText.setBackground(Color.white);        intervalText.setText("30000");        actionButton.setText("Action");        actionButton.addActionListener(this);        intervalText.addActionListener(this);        reachableBean.addPropertyChangeListener(this);        nameBean.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(nameList,             getGridBagConstraints2(0, 6, 2, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH,             new Insets(0, 0, 0, 0), 0, 0));        this.add(messageLabel,             getGridBagConstraints2(0, 7, 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(nameLabel,             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)    {        testNTUserNamesBean application = new testNTUserNamesBean();        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 == tryButton)        {            tryButton_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 == nameBean)        {            nameBean_propertyChange(e);        }    }    void hostText_actionPerformed(ActionEvent e)    {        nameBean.setHost(hostText.getText());    }    void portText_actionPerformed(ActionEvent e)    {        nameBean.setPort(portText.getText());    }    void communityText_actionPerformed(ActionEvent e)    {        nameBean.setCommunityName(communityText.getText());    }    void intervalText_actionPerformed(ActionEvent e)    {        nameBean.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 nameBean_propertyChange(PropertyChangeEvent e)    {        Enumeration names = nameBean.getNames();        int nr = nameBean.getCount();        nameLabel.setText(String.valueOf(nr));        if (nameList.getItemCount() > 0)        {            nameList.removeAll();        }        while (names.hasMoreElements())        {            String name = (String) names.nextElement();            nameList.add(name);        }    }    void reachableBean_propertyChange(PropertyChangeEvent e)    {        messageLabel.setText(reachableBean.getMessage());    }    void actionButton_actionPerformed(ActionEvent e)    {        messageLabel.setText(" ");        nameLabel.setText(" ");        if (nameList.getItemCount() > 0)        {            nameList.removeAll();        }        nameBean.setHost(hostText.getText());        nameBean.setPort(portText.getText());        nameBean.setCommunityName(communityText.getText());        nameBean.setUpdateInterval(intervalText.getText());        nameBean.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){} }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡免费欧美| 91视频xxxx| 亚洲一二三四区不卡| 日韩亚洲欧美在线| 色综合天天性综合| 狠狠久久亚洲欧美| 同产精品九九九| 亚洲婷婷综合色高清在线| 久久色.com| 91精品国产欧美日韩| 色综合久久久久| 国产精品一二三| 久久国产精品色婷婷| 天天影视网天天综合色在线播放| ...av二区三区久久精品| 久久综合av免费| 欧美大胆一级视频| 欧美日韩国产高清一区二区三区 | 九九九久久久精品| 亚洲国产毛片aaaaa无费看| 国产日韩欧美精品在线| 精品国产三级电影在线观看| 91精品婷婷国产综合久久性色| 色婷婷激情一区二区三区| 成人午夜短视频| 国产精选一区二区三区| 日韩一区二区在线观看视频| 欧美视频一区二区三区在线观看| 不卡的电影网站| 国产精品综合二区| 激情五月激情综合网| 青青草97国产精品免费观看| 天天色天天操综合| 亚洲大片一区二区三区| 亚洲一区二区三区激情| 一区二区三区中文字幕精品精品 | 久久精子c满五个校花| 精品成人一区二区| 日韩一级欧美一级| 制服视频三区第一页精品| 91精品国产色综合久久不卡蜜臀 | 国产在线视频一区二区三区| 美女视频一区二区| 老司机精品视频导航| 精品一区二区在线免费观看| 久久精品国产精品亚洲红杏| 国产综合成人久久大片91| 国产精品一区二区黑丝| 成人精品视频一区| 成人亚洲一区二区一| 97成人超碰视| 欧美午夜影院一区| 亚洲欧洲制服丝袜| 中文字幕一区免费在线观看| 亚洲免费成人av| 亚洲国产精品一区二区www在线 | 日韩毛片一二三区| 亚洲综合免费观看高清完整版| 亚洲午夜在线电影| 日韩黄色片在线观看| 久久99久久精品| 成人免费看视频| 欧美性猛交xxxx乱大交退制版| 欧美一区二区视频在线观看2022| 欧美成人综合网站| 国产女主播一区| 亚洲国产美女搞黄色| 男人的j进女人的j一区| 国产九色sp调教91| 在线视频综合导航| 日韩精品一区二区三区老鸭窝| 国产人伦精品一区二区| 一区二区三区中文在线| 麻豆91在线观看| 成人性生交大片免费看在线播放| 在线观看国产一区二区| 日韩一区二区不卡| 国产精品免费免费| 亚洲444eee在线观看| 国产精品99久久不卡二区| 日本伦理一区二区| 日韩女优av电影| 亚洲视频免费在线| 免费看日韩a级影片| av资源站一区| 日韩三级视频在线观看| 国产精品久久久久久久久图文区| 天堂久久一区二区三区| 国产.欧美.日韩| 欧美日韩免费一区二区三区 | 粉嫩一区二区三区性色av| 91黄色免费版| 精品理论电影在线观看| 亚洲情趣在线观看| 国产成人久久精品77777最新版本| 欧美亚洲图片小说| 国产视频一区在线播放| 丝袜a∨在线一区二区三区不卡| 成人妖精视频yjsp地址| 日韩精品专区在线影院重磅| 亚洲人午夜精品天堂一二香蕉| 精品写真视频在线观看| 欧美日本高清视频在线观看| 国产精品伦理一区二区| 老色鬼精品视频在线观看播放| 欧美综合在线视频| 中文字幕在线观看不卡| 国产91丝袜在线播放| 日韩欧美高清dvd碟片| 自拍偷拍亚洲综合| 成人国产精品视频| 国产日韩欧美亚洲| 国产乱码精品一区二区三| 日韩一级大片在线| 午夜欧美2019年伦理| 色欧美乱欧美15图片| 中文字幕精品在线不卡| 韩国精品久久久| 日韩欧美成人午夜| 奇米综合一区二区三区精品视频| 色视频一区二区| 亚洲男人天堂av网| av动漫一区二区| 国产精品美女久久久久高潮 | 欧美视频一区二区三区| 亚洲日本在线a| 91视视频在线观看入口直接观看www | 成人美女视频在线观看18| 亚洲精品在线免费观看视频| 日本免费在线视频不卡一不卡二| 4438x亚洲最大成人网| 性感美女久久精品| 欧美日韩综合在线免费观看| 午夜视频一区二区三区| 欧美日韩精品欧美日韩精品一| 亚洲一本大道在线| 欧美日韩国产精选| 日本色综合中文字幕| 日韩一区二区免费电影| 免费欧美在线视频| 精品国产亚洲一区二区三区在线观看| 美女任你摸久久| 久久久亚洲欧洲日产国码αv| 国产一区二区网址| 国产欧美一区视频| 91小视频在线| 亚洲第一综合色| 日韩一区二区三区观看| 国产一二三精品| 成人欧美一区二区三区1314| 在线视频观看一区| 午夜精品一区二区三区电影天堂| 在线电影国产精品| 精品一区二区三区在线观看| 国产午夜精品一区二区三区嫩草| 国产成人免费在线| 亚洲欧洲综合另类在线| 欧美日韩精品高清| 久久99精品国产.久久久久久| 精品国产乱码久久久久久久| 国产精品18久久久久| 亚洲人成网站在线| 在线电影国产精品| 国产精品中文有码| 一二三区精品福利视频| 日韩手机在线导航| 国产69精品久久久久毛片| 亚洲六月丁香色婷婷综合久久| 欧美精品黑人性xxxx| 激情小说欧美图片| 亚洲欧美综合网| 777亚洲妇女| 国产成人午夜视频| 亚洲午夜久久久久久久久久久| 日韩欧美电影在线| 91视视频在线直接观看在线看网页在线看 | 欧美日韩免费一区二区三区视频| 激情综合五月天| 亚洲女同ⅹxx女同tv| 欧美www视频| 欧洲一区二区三区免费视频| 激情综合色播五月| 亚洲精品videosex极品| 久久一区二区三区四区| 欧美视频精品在线| 国产成人h网站| 全国精品久久少妇| 中文字幕在线不卡一区| 精品国产三级电影在线观看| 91福利区一区二区三区| 国产不卡视频在线播放| 日一区二区三区| 亚洲精品国产a| 国产精品家庭影院| 精品电影一区二区| 欧美日韩aaaaa| 91亚洲午夜精品久久久久久| 国产精品77777| 久久疯狂做爰流白浆xx| 亚洲成人av一区二区|