Title:
*Description:
*Copyright: Copyright (c) 2004
*Company:
* @author not attributable * @version 1.0 */public class chatFrame extends JFrame { JPanel contentPane; Label label1 = new Label(); TextField textField1 = new TextField(); Label label2 = new Label(); TextField textField2 = new TextField(); Button button1 = new Button(); TextArea textArea1 = new TextArea(); DatagramPacket sendpacket,receivepacket; //定义发送和接受数据包 DatagramSocket sendsocket,receivesocket;//定义发送和接受 DatagramSocket //Construct the frame public chatFrame() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { //定义个组件和他们的布局 contentPane = (JPanel) this.getContentPane(); label2.setAlignment(Label.CENTER); label2.setFont(new java.awt.Font("SansSerif", 0, 15)); label2.setForegrou...1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。
碎片内容