/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package myframe;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
public class chatting_windows
extends JFrame {
public chatting_windows(){
String[] choice
={"悟空",
"八戒",
"师傅",
"沙僧",
"小白龙"};
panel.add(xlk);
panel.add(textfield);
panel.add(button);
this.add(gdt);
this.setTitle("聊天窗口");
this.setSize(400,300);
this.
setIconImage((new ImageIcon("f://4.png")).
getImage());
this.setLocation(400,320);
this.setResizable(false);
this.setDefaultCloseOperation(3);
this.setVisible(true);
}
public static void main
(String[] args
) {
JFrame frame
=new chatting_windows
();
}
}