欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

qq的java源代碼,手機(jī)源代碼

用Java編 QQ登錄界面

是javeSE。主要用來編寫一些界面程序,帶窗口的。

成都創(chuàng)新互聯(lián)服務(wù)項目包括劍河網(wǎng)站建設(shè)、劍河網(wǎng)站制作、劍河網(wǎng)頁制作以及劍河網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,劍河網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到劍河省份的部分城市,未來相信會繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

ME是專門用來手機(jī)開發(fā)的。不過前途不咋滴了。

EE是用來進(jìn)行企業(yè)級開發(fā)的。多少是BS編程,就是網(wǎng)站類程序。

這3個的基本的java基礎(chǔ)類都是一樣 的。

區(qū)別是:

SE含有SWing等界面類。

ME有很多對手機(jī)硬件操作的類。

EE有很多WEB開發(fā)的類。

希望對你有所幫助!o(∩_∩)o 哈哈

有誰知道QQ后臺程序用JAVA怎么編寫啊?

import java.io.*;

public class QQ_Manager {

private int max_user=1000;

private String[] userID;

private String[] userName;

private String[] userPW;

private String[] userIP;

private int userCounts;

private int userOnline;

private String fileName;

/**構(gòu)造方法初始化數(shù)據(jù)文件等*/

QQ_Manager(String fileName){this.fileName=fileName;}

/**將現(xiàn)有的QQ用戶和記錄寫入數(shù)據(jù)文件*/

public synchronized void write_userDataFile(String fileName) {

}

/**從數(shù)據(jù)文件中讀取QQ用戶記錄*/

public synchronized void read_userDataFile(String fileName) {

}

/**用戶來注冊新的QQ號*/

public synchronized boolean regist_QQ(String userName,String PW){return false;}

/**QQ用戶登陸處理*/

public synchronized boolean login_QQ(String id,String pw){return true;}

/**QQ用戶離線處理*/

public synchronized boolean logout_QQ(String id, String pw){return false;}

/**返回QQ在線列表*/

public String get_QQList(){return null;}

}

Java語言寫段簡單,但又有技術(shù)含量的即時通訊代碼,不勝感激之情溢于滿天下

這里有一個簡單的模擬通訊 要先運行服務(wù)器端 再運行客戶端 否則會報錯:

服務(wù)器端代碼:

package?com.test3;

import?java.net.*;

import?java.io.*;

import?javax.swing.*;

import?java.awt.*;

import?java.awt.event.*;

public?class?Server2?extends?JFrame?implements?ActionListener?,?KeyListener?{

JTextArea?jta=null;

JScrollPane?jsp=null;

JTextField?jtf=null;

JButton?jb=null;

JPanel?jp=null;

InputStreamReader?isr=null;

BufferedReader?br=null;

PrintWriter?pw=null;

Socket?s;

String?jtatext="";

public?static?void?main(String[]?args)?{

//?TODO?Auto-generated?method?stub

Server2?sv2=new?Server2();

}

public?Server2(){

jta=new?JTextArea();

jta.setEditable(false);

jsp=new?JScrollPane(jta);

jtf=new?JTextField(10);

jtf.addKeyListener(this);

jb=new?JButton("發(fā)送");

jb.addActionListener(this);

jp=new?JPanel();

jp.add(jtf);

jp.add(jb);

this.add(jsp,"Center");

this.add(jp,"South");

this.setSize(300,300);

this.setLocationRelativeTo(this);

this.setTitle("服務(wù)器端");

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

this.setVisible(true);

try{

ServerSocket?ss=new?ServerSocket(9999);

s=ss.accept();

isr=new?InputStreamReader(s.getInputStream());

br=new?BufferedReader(isr);

pw=new?PrintWriter(s.getOutputStream(),true);

while(true){

String?info=br.readLine();

jta.append("客戶端對服務(wù)器說:???"+info+"\r\n");

// this.jta.setText(jtatext);

}

}catch(Exception?e){

e.printStackTrace();

}

}

@Override

public?void?actionPerformed(ActionEvent?e)?{

if(e.getSource()==jb){

try?{

pw.println(jtf.getText());

jta.append("服務(wù)器對客戶端說:???"+jtf.getText()+"\r\n");

// jta.setText(jtatext);

jtf.setText("");

}?catch?(Exception?e1)?{

//?TODO?Auto-generated?catch?block

e1.printStackTrace();

}

}

}

@Override

public?void?keyTyped(KeyEvent?e)?{}

@Override

public?void?keyPressed(KeyEvent?e)?{

if(e.getKeyCode()==KeyEvent.VK_ENTER){

try?{

pw.println(jtf.getText());

jta.append("服務(wù)器對客戶端說:???"+jtf.getText()+"\r\n");

jtf.setText("");

}?catch?(Exception?e1)?{

e1.printStackTrace();

}

}

}

@Override

public?void?keyReleased(KeyEvent?e)?{}

}

客戶端代碼:

package?com.test3;

import?java.net.*;

import?java.io.*;

import?javax.swing.*;

import?java.awt.*;

import?java.awt.event.*;

public?class?Client2?extends?JFrame?implements?ActionListener?,KeyListener?{

JTextArea?jta=null;

JScrollPane?jsp=null;

JTextField?jtf=null;

JButton?jb=null;

JPanel?jp=null;

String?jtatext="";

Socket?s;

PrintWriter?pw=null;

InputStreamReader?isr=null;

BufferedReader?br=null;

public?static?void?main(String[]?args)?{

//?TODO?Auto-generated?method?stub

Client2?sv2=new?Client2();

}

public?Client2(){

jta=new?JTextArea();

jta.setEditable(false);

jsp=new?JScrollPane(jta);

jtf=new?JTextField(10);

jtf.addKeyListener(this);

jb=new?JButton("發(fā)送");

jb.addActionListener(this);

jp=new?JPanel();

jp.add(jtf);

jp.add(jb);

this.add(jsp,"Center");

this.add(jp,"South");

this.setSize(300,300);

this.setLocationRelativeTo(this);

this.setTitle("客戶端");

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

this.setVisible(true);

try?{

?s=new?Socket("127.3.3.3",9999);

?isr=new?InputStreamReader(s.getInputStream());

?br=new?BufferedReader(isr);

?pw=new?PrintWriter(s.getOutputStream(),true);

?

?while(true){

?String?info=br.readLine();?

jta.append("服務(wù)器對客戶端說:???"+info+"\r\n");

?

?}

}?catch?(Exception?e)?{

//?TODO?Auto-generated?catch?block

e.printStackTrace();

}

}

@Override

public?void?actionPerformed(ActionEvent?e)?{

if(e.getSource()==jb){

try?{

pw.println(this.jtf.getText());

jta.append("客戶端對服務(wù)器說:???"+jtf.getText()+"\r\n");

jtf.setText("");

}?catch?(Exception?e1)?{

//?TODO?Auto-generated?catch?block

e1.printStackTrace();

}

}

}

public?void?keyTyped(KeyEvent?e)?{}

public?void?keyPressed(KeyEvent?e)?{

if(e.getKeyCode()==KeyEvent.VK_ENTER){

try?{

pw.println(this.jtf.getText());

jta.append("客戶端對服務(wù)器說:???"+jtf.getText()+"\r\n");

jtf.setText("");

}?catch?(Exception?e1)?{

//?TODO?Auto-generated?catch?block

e1.printStackTrace();

}

}

}

public?void?keyReleased(KeyEvent?e)?{}

}

哪里有JAVA寫的類似QQ截圖工具的源代碼?

不能立即給你提供源碼 但是可以教給你怎么實現(xiàn)。

首先 你要截屏 肯定要在屬于用鼠標(biāo)圈定一個區(qū)域來截取這個區(qū)域。

你可以這樣:

先截取當(dāng)前屏幕的滿屏圖片:new robot().createScreenCapture(r) 這個是截屏代碼 r是Rectangle類型 代表要截取的區(qū)域。

然后用 JDialog 做一個無控制條的窗口,大小設(shè)置成滿屏,把截取的這個滿屏的圖片貼到這個 JDiaglog 里

然后做一下鼠標(biāo)圈定區(qū)域,這個很簡單 不詳細(xì)說了, 最后對你圈定的這個區(qū)域再做一次截屏,這個不就是你要的截圖了。,。 最后別忘了 截屏完畢后 關(guān)閉JDialog

你要是覺得這樣做麻煩,也沒別的辦法。 反正我很明白 QQ的截屏也是這樣做的

求一個山寨qq的源代碼,要java語言的~謝謝

簡單得很的那種要不要?就像用來應(yīng)對考試一樣。

import?java.io.*;

import?java.net.*;

import?java.util.*;

public?class?ChatServer?{

boolean?started?=?false;

ServerSocket?ss?=?null;

ListClient?clients?=?new?ArrayListClient();

public?static?void?main(String[]?args)?{

new?ChatServer().start();

}

public?void?start()?{

try?{

ss?=?new?ServerSocket(8888);

started?=?true;

}?catch?(BindException?e)?{

System.out.println("端口使用中....");

System.out.println("請關(guān)掉相關(guān)程序并重新運行服務(wù)器!");

System.exit(0);

}?catch?(IOException?e)?{

e.printStackTrace();

}?

try?{?

while(started)?{

Socket?s?=?ss.accept();

Client?c?=?new?Client(s);

System.out.println("a?client?connected!");

new?Thread(c).start();

clients.add(c);

}

}?catch?(IOException?e)?{

e.printStackTrace();

}?finally?{

try?{

ss.close();

}?catch?(IOException?e)?{

e.printStackTrace();

}

}

}

class?Client?implements?Runnable?{

private?Socket?s;

private?DataInputStream?dis?=?null;

private?DataOutputStream?dos?=?null;

private?boolean?bConnected?=?false;

public?Client(Socket?s)?{

this.s?=?s;

try?{

dis?=?new?DataInputStream(s.getInputStream());

dos?=?new?DataOutputStream(s.getOutputStream());

bConnected?=?true;

}?catch?(IOException?e)?{

e.printStackTrace();

}

}

public?void?send(String?str)?{

try?{

dos.writeUTF(str);

}?catch?(IOException?e)?{

e.printStackTrace();

}

}

public?void?run()?{

try?{

while(bConnected)?{

String?str?=?dis.readUTF();

System.out.println(str);

for(int?i=0;?iclients.size();?i++)?{

Client?c?=?clients.get(i);

c.send(str);

}

}

}?catch?(EOFException?e)?{

System.out.println("Client?closed!");

}?catch?(IOException?e)?{

e.printStackTrace();

}?finally?{

try?{

if(dis?!=?null)?dis.close();

if(dos?!=?null)?dos.close();

if(s?!=?null)??{

s.close();

//s?=?null;

}

}?catch?(IOException?e1)?{

e1.printStackTrace();

}

}

}

}

}

客戶端,開兩個就能聊了……

import?java.awt.*;

import?java.awt.event.*;

import?java.io.*;

import?java.net.*;

public?class?ChatClient?extends?Frame?{

Socket?s?=?null;

DataOutputStream?dos?=?null;

DataInputStream?dis?=?null;

private?boolean?bConnected?=?false;

TextField?tfTxt?=?new?TextField();

TextArea?taContent?=?new?TextArea();

Thread?tRecv?=?new?Thread(new?RecvThread());

public?static?void?main(String[]?args)?{

new?ChatClient().launchFrame();?

}

public?void?launchFrame()?{

setLocation(400,?300);

this.setSize(300,?300);

add(tfTxt,?BorderLayout.SOUTH);

add(taContent,?BorderLayout.NORTH);

pack();

this.addWindowListener(new?WindowAdapter()?{

@Override

public?void?windowClosing(WindowEvent?arg0)?{

disconnect();

System.exit(0);

}

});

tfTxt.addActionListener(new?TFListener());

setVisible(true);

connect();

tRecv.start();

}

public?void?connect()?{

try?{

s?=?new?Socket("127.0.0.1",?8888);

dos?=?new?DataOutputStream(s.getOutputStream());

dis?=?new?DataInputStream(s.getInputStream());

System.out.println("connected!");

bConnected?=?true;

}?catch?(UnknownHostException?e)?{

e.printStackTrace();

}?catch?(IOException?e)?{

e.printStackTrace();

}

}

public?void?disconnect()?{

try?{

dos.close();

dis.close();

s.close();

}?catch?(IOException?e)?{

e.printStackTrace();

}

}

private?class?TFListener?implements?ActionListener?{

public?void?actionPerformed(ActionEvent?e)?{

String?str?=?tfTxt.getText().trim();

tfTxt.setText("");

try?{

dos.writeUTF(str);

dos.flush();

}?catch?(IOException?e1)?{

e1.printStackTrace();

}

}

}

private?class?RecvThread?implements?Runnable?{

public?void?run()?{

try?{

while(bConnected)?{

String?str?=?dis.readUTF();

taContent.setText(taContent.getText()?+?str?+?'\n');

}

}?catch?(SocketException?e)?{

System.out.println("bye!");

}?catch?(IOException?e)?{

e.printStackTrace();

}?

}

}

}

我有一個基于JAVA的企業(yè)QQ源程序,但是不知道怎么運行,誰能幫幫我啊~!

你說了一些你想說什么啊 不就是想說 有一個程序代碼 你想運行看到結(jié)果嗎 ?DOS黑屏下運行時最基本最簡單的 . 我交你一個萬能方法吧

1.下一個myeclipse 而不是eclipse 有很大區(qū)別的

2.裝完之后 進(jìn)入軟件里 右擊新建工程

3.在工程建立后 右擊工程 建立class文件 之后把你的代碼復(fù)制粘貼到里面

4,。菜單欄里德運行按鈕 就可以了(前提是你的代碼是正確無誤的)

不會可以叫我 截圖 在線教你

網(wǎng)站標(biāo)題:qq的java源代碼,手機(jī)源代碼
當(dāng)前鏈接:http://chinadenli.net/article40/hshcho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄云服務(wù)器定制開發(fā)響應(yīng)式網(wǎng)站建站公司網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司