91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

java CS 標準考試系統 超級經典 實用 經本人多次測試通過!;希望大家一起學習進步!

資源截圖

代碼片段和文件信息

import?java.awt.*;
import?javax.swing.*;
import?java.awt.event.*;
import?java.io.*;
import?java.net.*;
/**
*?version?:1.0
*?create?by?zacry?2006/05/06
*?qq:?834163967?
*?I?hope?JAVA-loving?friends?and?join?me?in?progress!?Thanks!
*/
public?class?ChoiceFile?extends?Panel?implements?ItemListenerActionListenerRunnable
{
???Button?得到試題文件=null;
???Choice?list=null;?
???Socket??socket=null;
???DataInputStream?in=null;?
???DataOutputStream?out=null;?
???Thread?thread=null;
???boolean?success=false?isSelected=false;
???int?n=0;
???
???public?ChoiceFile()
????{
??????得到試題文件=new?Button(“將試題文件添加到下拉列表中“);
??????得到試題文件.setEnabled(false);
??????得到試題文件.addActionListener(this);
??????list=new?Choice();
??????list.add(“**********“);
??????add(得到試題文件);
??????add(list);
??????list.addItemListener(this);
??????thread=new?Thread(this);
????}
??public?void?setSocketConnection(Socket?socketDataInputStream?inDataOutputStream?out)
????{
??????this.socket=socket;
??????this.in=in;
??????this.out=out;?
??????try?{
????????????thread.start();?
??????????}
??????catch(Exception?ee)
??????????{
??????????}
??????if(this.socket!=null)
???????{
?????????得到試題文件.setEnabled(true);
???????}?
????}
???public?void?actionPerformed(ActionEvent?e)
????{
?????????try?
???????????{?
?????????????out.writeUTF(“列出考試文件“);
?????????????out.flush();
???????????}
???????????catch(IOException?ee)
???????????{?
?????????????success=false;
???????????}
???????
????}?
??public?void?itemStateChanged(ItemEvent?e)
????{?
??????n=list.getItemCount();
??????if(n>=1&&isSelected==true)
????????{
??????????String?listItem=list.getSelectedItem();
???????????try
??????????????{
????????????????out.writeUTF(“考試文件的名字:“+listItem);
????????????????out.writeUTF(“請通知考試界面考試用時:“);
??????????????}
???????????catch(IOException?ee)
??????????????{
??????????????}
????????}?????????
???}
??public?String?得到選擇的文件名()
???{
????return?list.getSelectedItem();
???}
??public?void?run()
???{
????String?s=null;
????list.removeAll();
????while(true)
??????{?
????????try
???????????{
?????????????s=in.readUTF();??????????
??????????????if(s.startsWith(“考試文件:“))
?????????????????{
???????????????????String?listItem=s.substring(s.indexOf(“:“)+1);
???????????????????list.add(listItem);
???????????????????isSelected=true;
?????????????????}
???????????????if(s.startsWith(“已經全部列出:“))
?????????????????{
???????????????????success=true;?
???????????????????break;
?????????????????}
???????????????
???????????}
????????catch?(Exception?ee)?
???????????{
???????????}???
??????}
?}
?public?boolean?getSuccess()
?{?
???n=list.getItemCount();
???if(n>0&&success==true)
??????return?true;
???else
??????return?false;
?}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????804??2009-01-07?11:40??java開發的CS標準考試系統\123.txt

?????文件???????2884??2009-01-08?11:30??java開發的CS標準考試系統\ChoiceFile.java

?????文件???????3993??2009-01-08?11:30??java開發的CS標準考試系統\Client.java

?????文件???????6394??2009-01-08?11:30??java開發的CS標準考試系統\ClientTestArea.java

?????文件????????334??2009-01-07?14:30??java開發的CS標準考試系統\FileName.java

?????文件???????4004??2009-01-08?11:30??java開發的CS標準考試系統\ReadTestquestion.java

?????文件???????1226??2009-01-08?11:30??java開發的CS標準考試系統\Server.java

?????文件???????3566??2009-01-08?11:30??java開發的CS標準考試系統\Server_thread.java

?????文件????????642??2009-01-08?11:12??java開發的CS標準考試系統\FileName.class

?????文件???????3069??2009-01-08?11:12??java開發的CS標準考試系統\ReadTestquestion.class

?????文件???????2945??2009-01-08?11:13??java開發的CS標準考試系統\ChoiceFile.class

?????文件???????5216??2009-01-08?11:13??java開發的CS標準考試系統\ClientTestArea.class

?????文件????????474??2009-01-08?11:13??java開發的CS標準考試系統\Client$1.class

?????文件???????4320??2009-01-08?11:13??java開發的CS標準考試系統\Client.class

?????文件???????1116??2009-01-08?11:18??java開發的CS標準考試系統\Server.class

?????文件???????3195??2009-01-08?11:18??java開發的CS標準考試系統\Server_thread.class

?????目錄??????????0??2009-01-08?11:11??java開發的CS標準考試系統

-----------?---------??----------?-----??----

????????????????44182????????????????????17


評論

共有 條評論