已发布的记事本
import javax.swing.*;
import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.awt.event.*;
import java.io.*;
public class Moo{
public static void main(String args[]){
FirstWindow win=new FirstWindow("新建文本文档.txt-记事本");
}
}
class FirstWindow extends JFrame implements ActionListener,ItemListener{
JFileChooser fileChooser1,fileChooser2,fileChooser3,fileChooser4;
JPopupMenu menu;
JComboBox listFont;
JTextArea text;
JScrollPane scrollPane;
JMenuBar menubar;
JMenu menu1,menu2,menu3,menu4,menu5;
JMenuItem item1,item2,item3,item4,item5,item6,item7,item8,item9,item10,item11,item12,item13
,item14,item15,item16,item17,item18,item19,item20,item21,item22,item23,item24,item25,item26,item27
,item28,item29,item30,item31,item32,item33,item34;
FirstWindow(String s){
setTitle(s);
setSize(260,270);
setLocation(
- 2022-02-04 14:46:14下载
- 积分:1
多线程通信描述的程序,设计项目:一个..
多线程通信 程序说明 Ⅰ、设计项目: 简单的聊天程序 Ⅱ、设计人: 刘亚焱 Ⅲ、设计时间: 2003.5.6 Ⅳ、设计步骤: 1)需求分析: 用java实现底层网络通信,我用的是 TCP/IP协议里的套接字(Socket)编程接口来实现网络通讯。 2)设计部分: socket是一种流式通信机制,是一种基于连接的通信,即,在通信之前通信双方确认身份并建立一条 专用的虚拟连接通道,然后他们通过这条通道传送数据信息进行通信,当通信结束时再将原来所建的连 接拆除。-multithreaded communications description of the procedures, design projects : a simple chat program II, designer : Liu Yan III, the design time : 2003.5.6 IV, the design steps : 1) Demand Analysis : java achieve underlying network communication, I use the TCP/The IP socket (Socket) programming interfaces to network communications. 2) Design : socket is a streaming communication mechanism is based on a link of communication, namely, the communication before the two sides identified telecommunications and the establishment of a dedicated virtual link, and then they pass this information channel for transmission of data communications, when the communication ended when it originally construction of the link removed.
- 2022-02-02 13:34:24下载
- 积分:1