import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.border.MatteBorder;
public class SelectLessonView extends JFrame{
/**
*
*/
private static final long serialVersionUID = 1L;
public SelectLessonView() {
// TODO Auto-generated constructor stub
this.setSize(700,400);
//this.setUndecorated(true);
this.setVisible(true);
this.setLayout(null);
//该面板为用户名面板
JPanel jPanelUesrname = new JPanel(null);
jPanelUesrname.setBorder(new MatteBorder(1, 1, 1, 1, Color.black));
jPanelUesrname.setBounds(1, 1, 120, 40);
JLabel jLabelUesrname = new JLabel("高小小");
jLabelUesrname.setFont(new Font("隶书", Font.BOLD, 30));
jLabelUesrname.setBounds(10,0,100,40);
jPanelUesrname.add(jLabelUesrname);
JPanel jPanelCommand = new JPanel(null);
jPanelCommand.setBorder(new MatteBorder(1, 1, 1, 1, Color.black));
jPanelCommand.setBounds(1, 1, 120, 400);
JButton jButtonchangePersonMessage = new JButton("个人信息");
jButtonchangePersonMessage.setBounds(10,50,100,40);
JButton jButtonSelectLesson = new JButton("选课");
jButtonSelectLesson.setBounds(10,100,100,40);
JButton jButtonManageMate = new JButton("学生管理");
jButtonManageMate.setBounds(10,150,100,40);
JButton jButtonExit = new JButton("退出");
jButtonExit.setBounds(10,200,100,40);
jPanelCommand.add(jButtonchangePersonMessage);
jPanelCommand.add(jButtonSelectLesson);
jPanelCommand.add(jButtonManageMate);
jPanelCommand.add(jButtonExit);
JTable jTable = new JTable();
jTable.setBounds(150, 1, 200, 300);
this.add(jPanelUesrname);
this.add(jPanelCommand);
this.add(jTable);
}
public static void main(String[] args) {
SelectLessonView lessonView = new SelectLessonView();
}
}