利用JAVA GUI制作用户聊天界面
import java.awt.;
import java.awt.event.;
import javax.swing.*;
public class Example18 extends JFrame{
JButton sendBt;
JTextField inputFiled;
JTextArea chatContent;
private boolean flase;
public Example18(){
this.setLayout(new BorderLayout());
chatContent=new JTextArea(12,34);
JScrollPane showPanel=new JScrollPane(chatContent);
chatContent.setEditable(flase);
JPanel inputPanel=new JPanel();
inputFiled=new JTextField(20);**
**sendBt=new JButton(“发送”);
sendBt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
String content=inputFiled.getText();
if(content !=null && !conten