mirror of
https://github.com/FatttSnake/ClassroomInteraction.git
synced 2026-04-06 03:21:26 +08:00
Init student GUI
This commit is contained in:
23
Student/src/main/java/com/cfive/classroom/student/Chat.java
Normal file
23
Student/src/main/java/com/cfive/classroom/student/Chat.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.cfive.classroom.student;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class Chat {
|
||||
private JPanel panel1;
|
||||
private JTextField textField1;
|
||||
private JButton 发送Button;
|
||||
private JTextArea textArea1;
|
||||
static JFrame frame = new JFrame("test");
|
||||
public void start(){
|
||||
frame.setContentPane(new Chat().panel1);
|
||||
frame.setBounds(650,300,600,400);
|
||||
frame.setVisible(true);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
|
||||
frame.setContentPane(new Chat().panel1);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
// frame.pack();
|
||||
frame.setVisible(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user