資源簡介
基于java編寫的教務管理系統,其中包含了java源代碼,數據庫課程設計報告

代碼片段和文件信息
package?frame;
import?java.awt.BorderLayout;
import?java.awt.FlowLayout;
import?java.awt.GridLayout;
import?java.awt.event.ActionEvent;
import?java.sql.SQLException;
import?javax.swing.AbstractAction;
import?javax.swing.DefaultDesktopManager;
import?javax.swing.JButton;
import?javax.swing.JInternalframe;
import?javax.swing.JLabel;
import?javax.swing.JPanel;
import?javax.swing.JScrollPane;
import?javax.swing.JSplitPane;
import?javax.swing.JTable;
import?javax.swing.JTextField;
import?model.CourseData;
import?util.SqlTableModel;
import?util.UpdateDatebase;
public?class?Course?extends?JInternalframe?{
JSplitPane?splitPane?=?new?JSplitPane();
BorderLayout?borderLayout?=?new?BorderLayout();
GridLayout?gridLayout?=?new?GridLayout();
FlowLayout?flowLayout?=?new?FlowLayout();
????JScrollPane?scrollPane?=?new?JScrollPane();
????JPanel?panel_1?=?new?JPanel();
????JPanel?panel_2?=?new?JPanel();
????JTable?table?=?new?JTable();
????SqlTableModel?tablemodel;????
????
????JLabel?c_idL?=?new?JLabel(“課程號“);
????JLabel?c_nameL?=?new?JLabel(“課程名“);
????JLabel?t_idL?=?new?JLabel(“教師號“);
????JLabel?creditL?=?new?JLabel(“學分“);
????JLabel?periodL?=?new?JLabel(“學時“);
????JLabel?cTimeL?=?new?JLabel(“上課時間“);
????JLabel?cAreaL?=?new?JLabel(“上課地點“);
????JLabel?eTimeL?=?new?JLabel(“考試時間“);
????JTextField?c_idT?=?new?JTextField();
????JTextField?c_nameT?=?new?JTextField();
????JTextField?t_idT?=?new?JTextField();
????JTextField?creditT?=?new?JTextField();
????JTextField?periodT?=?new?JTextField();
????JTextField?cTimeT?=?new?JTextField();
????JTextField?cAreaT?=?new?JTextField();????
????JTextField?eTimeT?=?new?JTextField();
????
????
????JButton?insertB?=?new?JButton(“增加“);
????JButton?updateB?=?new?JButton(“修改“);
????JButton?deleteB?=?new?JButton(“刪除“);
????JButton?exitB?=?new?JButton(“退出“);
????
????CourseData?data?=?new?CourseData();
????public?Course()?{
???? init();
setVisible(true);
setDefaultCloseOperation(JInternalframe.EXIT_ON_CLOSE);
????}
private?void?init()?{
setLayout(borderLayout);
setSize(550?420);
setClosable(true);
cTimeT.setText(“2008-4-25“);
eTimeT.setText(“2008-6-28“);
add(splitPane?BorderLayout.CENTER);
????????splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
????????splitPane.add(scrollPane?JSplitPane.TOP);
????????scrollPane.getViewport().add(table);
????????splitPane.add(panel_2?JSplitPane.BOTTOM);
// buildTable();
????????gridLayout.setColumns(4);
????????gridLayout.setRows(4);
????????panel_2.setLayout(gridLayout);
????????
//??????idT.setEnabled(false);????????
????????panel_2.add(c_idL);
????????panel_2.add(c_idT);
????????panel_2.add(c_nameL);
????????panel_2.add(c_nameT);
????????panel_2.add(t_idL);
????????panel_2.add(t_idT);
????????panel_2.add(creditL);
????????panel_2.add(creditT);
????????panel_2.add(periodL);
????????panel_2.add(periodT);
????????panel_2.add(cTimeL);
????????panel_2.add(cTimeT);
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????368??2009-01-03?11:10??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\.classpath
?????文件????????388??2008-06-20?21:05??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\.project
?????文件????????620??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????620??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????620??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????770??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????5901??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????644??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????612??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????644??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????794??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????4981??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????801??2009-01-03?14:10??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????675??2009-01-03?14:10??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????3212??2009-01-03?14:10??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????284??2009-01-03?11:56??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????1228??2009-01-03?11:10??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????5724??2009-01-03?18:21??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????2852??2009-01-03?18:22??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????656??2009-01-03?18:18??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????624??2009-01-03?18:18??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????656??2009-01-03?18:18??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????806??2009-01-03?18:18??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????5438??2009-01-03?18:18??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????656??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????624??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????656??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????806??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件???????5795??2009-01-03?18:13??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
?????文件????????626??2009-01-03?17:59??教學管理系統?數據庫課程設計\數據庫設計\TeachManager\bin\fr
............此處省略77個文件信息
評論
共有 條評論