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

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

?? pollclient.java

?? 自己寫的輪詢提問的小程序 新手剛學(xué) 多多指教 合乎哈
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*This is the main class of the PollClient (called PollClient). Contains GUI and suchCopyright (C) 2005-2006  Igor Partola, Michael J. Krikonis, Clark UniversityThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*/package PollClient;import java.io.*;import java.net.*;import javax.swing.*;import java.awt.*;import java.awt.event.*;public class PollClient extends javax.swing.JFrame implements Runnable{        public PollClient() {        initComponents();        TimeoutTimer = new Timer(1000, new ActionListener() {            public void actionPerformed(ActionEvent evt) {                timeElapsed++;                int tl = 0;                if (currentQuestion != null) tl = currentQuestion.getTimeout() - timeElapsed;                    else tl = 0;                if (tl < 0) tl = 0;                TimeoutLabel.setText("Time left: " + Integer.toString(tl));                }        });        disconnect();    }    private void initComponents() {//GEN-BEGIN:initComponents        RadioButtonGroup = new javax.swing.ButtonGroup();        AnswerRadioButtonA = new javax.swing.JRadioButton();        AnswerRadioButtonB = new javax.swing.JRadioButton();        AnswerRadioButtonC = new javax.swing.JRadioButton();        AnswerRadioButtonD = new javax.swing.JRadioButton();        AnswersLabel = new javax.swing.JLabel();        QuestionTextArea = new javax.swing.JTextArea();        QuestionNameLabel = new javax.swing.JLabel();        SendButton = new javax.swing.JButton();        ConnectButton = new javax.swing.JButton();        AddressTextField = new javax.swing.JTextField();        jLabel1 = new javax.swing.JLabel();        jSeparator1 = new javax.swing.JSeparator();        TimeoutLabel = new javax.swing.JLabel();        AnswerRadioButtonE = new javax.swing.JRadioButton();        AnswerRadioButtonF = new javax.swing.JRadioButton();        StatusLabel = new javax.swing.JLabel();        jButton1 = new javax.swing.JButton();        getContentPane().setLayout(null);        setTitle("Just Poll Client");        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));        setFont(new java.awt.Font("Tahoma", 0, 10));        setName("PollClientMainFrame");        setResizable(false);        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        AnswerRadioButtonA.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonA.setSelected(true);        AnswerRadioButtonA.setText("A: Yes");        RadioButtonGroup.add(AnswerRadioButtonA);        AnswerRadioButtonA.setEnabled(false);        getContentPane().add(AnswerRadioButtonA);        AnswerRadioButtonA.setBounds(30, 170, 170, 23);        AnswerRadioButtonA.getAccessibleContext().setAccessibleName("RadioButtonA");        AnswerRadioButtonB.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonB.setText("B: No");        RadioButtonGroup.add(AnswerRadioButtonB);        AnswerRadioButtonB.setEnabled(false);        getContentPane().add(AnswerRadioButtonB);        AnswerRadioButtonB.setBounds(200, 170, 180, 23);        AnswerRadioButtonB.getAccessibleContext().setAccessibleName("RadioButtonB");        AnswerRadioButtonC.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonC.setText("C: I don't know");        RadioButtonGroup.add(AnswerRadioButtonC);        AnswerRadioButtonC.setEnabled(false);        getContentPane().add(AnswerRadioButtonC);        AnswerRadioButtonC.setBounds(30, 200, 170, 23);        AnswerRadioButtonC.getAccessibleContext().setAccessibleName("RadioButtonC");        AnswerRadioButtonD.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonD.setText("D: I need to ask my wife");        RadioButtonGroup.add(AnswerRadioButtonD);        AnswerRadioButtonD.setEnabled(false);        getContentPane().add(AnswerRadioButtonD);        AnswerRadioButtonD.setBounds(200, 200, 190, 23);        AnswerRadioButtonD.getAccessibleContext().setAccessibleName("RadioButtonD");        AnswersLabel.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswersLabel.setText("Answers");        AnswersLabel.setEnabled(false);        getContentPane().add(AnswersLabel);        AnswersLabel.setBounds(30, 150, 80, 14);        AnswersLabel.getAccessibleContext().setAccessibleName("AnswersLabel");        QuestionTextArea.setEditable(false);        QuestionTextArea.setFont(new java.awt.Font("Tahoma", 0, 11));        QuestionTextArea.setLineWrap(true);        QuestionTextArea.setWrapStyleWord(true);        QuestionTextArea.setEnabled(false);        getContentPane().add(QuestionTextArea);        QuestionTextArea.setBounds(30, 50, 350, 80);        QuestionNameLabel.setFont(new java.awt.Font("Tahoma", 0, 11));        QuestionNameLabel.setText("Waiting for next question...");        getContentPane().add(QuestionNameLabel);        QuestionNameLabel.setBounds(10, 30, 160, 14);        QuestionNameLabel.getAccessibleContext().setAccessibleName("QuestionLabel");        SendButton.setFont(new java.awt.Font("Tahoma", 0, 11));        SendButton.setText("Send");        SendButton.setActionCommand("SendButton");        SendButton.setEnabled(false);        SendButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                SendButtonActionPerformed(evt);            }        });        getContentPane().add(SendButton);        SendButton.setBounds(150, 270, 73, 25);        SendButton.getAccessibleContext().setAccessibleName("SendButton");        ConnectButton.setFont(new java.awt.Font("Tahoma", 0, 11));        ConnectButton.setText("Connect");        ConnectButton.setActionCommand("ConnectButton");        ConnectButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                ConnectButtonActionPerformed(evt);            }        });        getContentPane().add(ConnectButton);        ConnectButton.setBounds(280, 240, 90, 30);        ConnectButton.getAccessibleContext().setAccessibleName("ConnectButton");        AddressTextField.setFont(new java.awt.Font("Tahoma", 0, 11));        AddressTextField.setText("140.232.*.*");        getContentPane().add(AddressTextField);        AddressTextField.setBounds(240, 280, 140, 20);        AddressTextField.getAccessibleContext().setAccessibleName("AddressTextField");        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 11));        jLabel1.setText("Network Address");        getContentPane().add(jLabel1);        jLabel1.setBounds(260, 270, 90, 14);        getContentPane().add(jSeparator1);        jSeparator1.setBounds(0, 309, 400, 10);        TimeoutLabel.setFont(new java.awt.Font("Tahoma", 0, 11));        TimeoutLabel.setText("Time left: ");        getContentPane().add(TimeoutLabel);        TimeoutLabel.setBounds(270, 30, 90, 15);        AnswerRadioButtonE.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonE.setText("E: I really don't know");        RadioButtonGroup.add(AnswerRadioButtonE);        AnswerRadioButtonE.setEnabled(false);        getContentPane().add(AnswerRadioButtonE);        AnswerRadioButtonE.setBounds(30, 230, 170, 23);        AnswerRadioButtonF.setFont(new java.awt.Font("Tahoma", 0, 11));        AnswerRadioButtonF.setText("F: N/A");        RadioButtonGroup.add(AnswerRadioButtonF);        AnswerRadioButtonF.setEnabled(false);        getContentPane().add(AnswerRadioButtonF);        AnswerRadioButtonF.setBounds(200, 230, 190, 23);        StatusLabel.setFont(new java.awt.Font("Tahoma", 0, 11));        StatusLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PollClient/disconnected-icon.gif")));        StatusLabel.setText("Connected to localhost");        StatusLabel.setFocusable(false);        StatusLabel.setIconTextGap(8);        StatusLabel.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);        getContentPane().add(StatusLabel);        StatusLabel.setBounds(10, 315, 230, 20);        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PollClient/info.gif")));        jButton1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton1ActionPerformed(evt);            }        });        getContentPane().add(jButton1);        jButton1.setBounds(369, 313, 30, 28);        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setBounds((screenSize.width-408)/2, (screenSize.height-412)/2, 408, 412);    }//GEN-END:initComponents    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed        SharedClasses.AboutDialog MyAboutFrame = new SharedClasses.AboutDialog(this, true);        MyAboutFrame.show();     }//GEN-LAST:event_jButton1ActionPerformed    private void SendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SendButtonActionPerformed        answer = getAnswer();        QuestionNameLabel.setText("Waiting for the next question...");                controlsSetEnabled(false);        SendButton.setEnabled(false);    }//GEN-LAST:event_SendButtonActionPerformed    private void ConnectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConnectButtonActionPerformed        connect();    }//GEN-LAST:event_ConnectButtonActionPerformed        private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm        System.exit(0);    }//GEN-LAST:event_exitForm    public static void main(String args[]) {        new PollClient().setVisible(true);    }        public void showQuestion(Question q) {        QuestionNameLabel.setText(q.getQuestionName());        QuestionTextArea.setText(q.getQuestion());        AnswerRadioButtonA.setText("A: " + q.getAnswerA());        AnswerRadioButtonB.setText("B: " + q.getAnswerB());        AnswerRadioButtonC.setText("C: " + q.getAnswerC());

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区成人| 丰满岳乱妇一区二区三区| 国产综合久久久久影院| 91免费看`日韩一区二区| 欧美一级国产精品| 一区二区三国产精华液| 国产一区二区伦理| 宅男噜噜噜66一区二区66| 欧美国产精品v| 黄色成人免费在线| 欧美精品aⅴ在线视频| 国产精品久久久久久户外露出 | 国产激情视频一区二区三区欧美 | 亚洲色图在线看| 国产精品 日产精品 欧美精品| 欧美另类高清zo欧美| 中文字幕色av一区二区三区| 国产在线观看免费一区| 91精品一区二区三区久久久久久 | 久久久久国产精品麻豆| 日韩国产精品久久久| 欧美系列一区二区| 亚洲精品国产高清久久伦理二区| 风流少妇一区二区| 久久综合九色综合欧美98| 免费观看91视频大全| 欧美专区亚洲专区| 亚洲图片欧美一区| 色狠狠色噜噜噜综合网| 中文字幕视频一区| www.色精品| 免费看欧美女人艹b| 欧美精品久久一区二区三区| 一区二区在线免费| 欧美视频一区二区三区四区| 亚洲综合清纯丝袜自拍| 欧美在线免费视屏| 丝袜国产日韩另类美女| 欧美日韩免费高清一区色橹橹| 亚洲精品欧美二区三区中文字幕| 91在线视频播放地址| 一区二区三区在线播| 在线观看亚洲一区| 五月天久久比比资源色| 欧美精品vⅰdeose4hd| 麻豆一区二区在线| 精品入口麻豆88视频| 国产一区二区三区高清播放| 国产欧美精品一区二区色综合 | 精品一区二区久久久| 欧美精品一区在线观看| 国产精品亚洲午夜一区二区三区 | 精品国产91洋老外米糕| 国产一区二区三区国产| 中文字幕一区二区三| 在线观看日韩毛片| 日韩激情av在线| 欧美成人高清电影在线| 成人av网站在线| 亚洲图片欧美综合| 精品电影一区二区| 99视频精品在线| 偷拍亚洲欧洲综合| 国产嫩草影院久久久久| 色菇凉天天综合网| 蜜桃视频免费观看一区| 国产精品久久三区| 欧美久久久一区| 成人免费毛片嘿嘿连载视频| 亚洲成人动漫一区| 国产日韩影视精品| 欧美日韩高清一区二区三区| 国产另类ts人妖一区二区| 夜色激情一区二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 在线亚洲免费视频| 国模少妇一区二区三区| 亚洲免费在线观看| 欧美精品一区男女天堂| 91丝袜国产在线播放| 精品综合久久久久久8888| 亚洲精品国久久99热| 久久久高清一区二区三区| 在线日韩一区二区| 国产.欧美.日韩| 91蜜桃传媒精品久久久一区二区| 水蜜桃久久夜色精品一区的特点 | 日韩精品一区二| 在线观看精品一区| 国产+成+人+亚洲欧洲自线| 日本亚洲一区二区| 一区二区三区在线影院| 国产精品毛片无遮挡高清| 欧美一区二区三区在线视频| 91免费看片在线观看| 国产精品羞羞答答xxdd| 久久精品国产精品亚洲精品| 亚洲国产日韩一级| 亚洲裸体xxx| 国产精品久久一卡二卡| 日本一区二区三区在线不卡| 日韩西西人体444www| 欧美在线一区二区| 成人aa视频在线观看| 国产一区二区三区观看| 九九久久精品视频| 久久国产三级精品| 久久电影网站中文字幕| 免费久久精品视频| 老司机精品视频线观看86| 日韩av一级片| 日本强好片久久久久久aaa| 亚洲成人免费电影| 日本视频一区二区三区| 日韩1区2区3区| 免费高清在线一区| 久久爱www久久做| 久久精品国产在热久久| 精品一区二区综合| 国产一区二区三区美女| 国产成人8x视频一区二区 | 激情综合色丁香一区二区| 蜜臀av性久久久久蜜臀av麻豆| 亚洲成人免费影院| 五月天丁香久久| 视频精品一区二区| 亚洲制服丝袜av| 一区二区三区欧美亚洲| 亚洲免费在线观看| 亚洲人成精品久久久久久| 国产拍揄自揄精品视频麻豆| 欧美午夜不卡在线观看免费| 欧美久久婷婷综合色| 欧美三级韩国三级日本三斤| 在线观看视频91| 欧美日韩国产小视频| 日韩欧美国产电影| 日韩精品一区二区在线| 欧美精品一区二区在线观看| 精品日韩一区二区三区| 日韩你懂的电影在线观看| 日韩免费高清av| 91.麻豆视频| 91精品国产高清一区二区三区蜜臀| 91香蕉视频污| 欧美性感一类影片在线播放| 欧美tk—视频vk| 欧美mv日韩mv国产网站| 久久久久久免费网| 国产欧美日韩精品一区| 日本一区二区三区在线不卡 | 日韩精品国产欧美| 国产999精品久久久久久| 欧美一区三区二区| 久久久久久久久久看片| 中文字幕欧美激情| 亚洲国产日韩综合久久精品| 人妖欧美一区二区| 国产一区二区三区久久久| 成人免费毛片高清视频| 成人蜜臀av电影| 欧美日韩国产另类不卡| 精品日产卡一卡二卡麻豆| 欧美国产日本韩| 亚洲一本大道在线| 成人做爰69片免费看网站| 欧美性猛交xxxx黑人交| 337p日本欧洲亚洲大胆精品| 中文字幕日韩欧美一区二区三区| 免费一级欧美片在线观看| 成人激情动漫在线观看| 在线免费一区三区| 欧美va亚洲va香蕉在线| 天天射综合影视| 成人免费高清在线观看| 91精品一区二区三区久久久久久 | 午夜欧美大尺度福利影院在线看| 激情久久五月天| 欧美无乱码久久久免费午夜一区| 久久综合狠狠综合久久综合88| 国产精品久久久久影院色老大 | 亚洲精品乱码久久久久久久久 | 亚洲福利视频三区| 午夜精品久久久久久不卡8050| 国产不卡高清在线观看视频| 欧美精品亚洲二区| 中文字幕在线不卡| 看国产成人h片视频| 99视频热这里只有精品免费| 亚洲国产高清不卡| 久久99精品国产麻豆不卡| 在线免费不卡电影| 国产欧美日韩一区二区三区在线观看| 日本成人在线电影网| 91美女片黄在线| 国产女人18毛片水真多成人如厕 | 成人妖精视频yjsp地址| 日本国产一区二区| 亚洲视频在线一区观看| 国产精品1区2区3区|