freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java人事管理系統(tǒng)數(shù)據(jù)庫(kù)系統(tǒng)應(yīng)用課程設(shè)計(jì)報(bào)告-資料下載頁(yè)

2025-05-23 18:06本頁(yè)面
  

【正文】 , gbc, 0, 2, 1, 1)。 add(txt_name, gbc, 1, 2, 1, 1)。 add(lbl_job, gbc, 0, 3, 1, 1)。 add(txt_job, gbc, 1, 3, 1, 1)。 add(lbl_sal, gbc, 0, 4, 1, 1)。 add(txt_sal, gbc, 1, 4, 1, 1)。 add(btnAdd, gbc, 0, 6, 1, 1)。 add(btnCancel, gbc, 1, 6, 1, 1)。 (empInfo_pane)。 (100,100,320,440)。 (true)。 (false)。 (添加新員工)。 } public void add(Component c, GridBagConstraints constraints, int x, int y, int w, int h) {// 此方法用來添加控件到容器中 = x。 = y。 = w。 = h。 (c, constraints)。 }}package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class EdtFrame implements ActionListener{ private JTextField txt_nid。 private JTextField txt_name。 private JTextField txt_job。 private JTextField txt_sal。 private JPanel empInfo_pane。 MainFrame main 。 public EdtFrame(MainFrame main) { = main。 } private void mInit() { final JFrame frame = new JFrame()。 JLabel lbl_title = new JLabel(員工信息編輯)。 JLabel lbl_empno = new JLabel(編號(hào))。 txt_nid = new JTextField(10)。// (())。 (false)。 JLabel lbl_ename = new JLabel(姓名)。 txt_name = new JTextField(10)。 JLabel lbl_job = new JLabel(工作)。 txt_job = new JTextField(10)。 JLabel lbl_sal = new JLabel(工資)。 txt_sal = new JTextField(10)。 final MainSql mSql = new MainSql()。 JButton btnAdd = new JButton(確定)。 (new ActionListener() { public void actionPerformed(ActionEvent e) { try { (().trim(), ().trim(), (().trim()), ().trim())。 } catch (NumberFormatException e1) { ()。 } catch (Exception e1) { ()。 } ()。 } })。 JButton btnCancel = new JButton(取消)。 (new ActionListener() { public void actionPerformed(ActionEvent e) { ()。 } })。 empInfo_pane = new JPanel()。 // 以網(wǎng)格為基礎(chǔ),允許組件占用多個(gè)網(wǎng)格,也可以只占用一個(gè)網(wǎng)格的一部分 GridBagLayout gbl = new GridBagLayout()。 // GridBagConstraints 類指定使用 GridBagLayout 類布置的組件的約束 GridBagConstraints gbc = new GridBagConstraints()。 // fill:組件的顯示區(qū)域大于它所請(qǐng)求的顯示區(qū)域的大小 = 。// 讓此組件緊跟在以前添加的組件之后 = 2。// 一行的單元格數(shù) = 7。// 一列的單元格數(shù) (gbl)。 // :指定此組件為行或者是列當(dāng)中的最后一個(gè)組件 add(lbl_title,gbc, 0, 0, , 1)。 add(lbl_empno,gbc, 0, 1, 1, 1)。 add(txt_nid, gbc, 1, 1, 1, 1)。 add(lbl_ename, gbc, 0, 2, 1, 1)。 add(txt_name, gbc, 1, 2, 1, 1)。 add(lbl_job, gbc, 0, 3, 1, 1)。 add(txt_job, gbc, 1, 3, 1, 1)。 add(lbl_sal, gbc, 0, 4, 1, 1)。 add(txt_sal, gbc, 1, 4, 1, 1)。 add(btnAdd, gbc, 0, 6, 1, 1)。 add(btnCancel, gbc, 1, 6, 1, 1)。 (empInfo_pane)。 (100,100,320,440)。 (true)。 (false)。 (添加新員工)。 } public void add(Component c, GridBagConstraints constraints, int x, int y, int w, int h) {// 此方法用來添加控件到容器中 = x。 = y。 = w。 = h。 (c, constraints)。 } @Override public void actionPerformed(ActionEvent e) { // TODO Autogenerated method stub mInit()。 }}package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class SlcListener implements ActionListener{ private MainFrame main。 public SlcListener(MainFrame main) { = main。 } public void actionPerformed(ActionEvent e) { String btnName = ().toString()。 ButtonGroup bg = ()。 JScrollPane empT = ()。 DefaultTableModel dts = ()。 MainSql mSql = new MainSql()。 try { ()。 } catch (ClassNotFoundException e4) { ()。 } Connection connection = null。 try { connection = ( jdbc:oracle:thin:@:1521:WAIT, scott, tiger)。 } catch (SQLException e3) { ()。 } try { Statement statement = ()。 } catch (SQLException e2) { ()。 } if (查詢.equals(btnName)) { /* 獲取查詢條件 */ Enumeration all_rb = ()。 while (()) { JRadioButton temp = (JRadioButton) ()。 if (()) { JTable jt = null。 (().trim())。 if (按姓名.equals(().trim())) { VectorVectorString lists = null。 try { lists = (VectorVectorString) ((MainSql) mSql) .queryLikeEmpName(())。 } catch (Exception e1) { ()。 } jt = (lists)。 } else { VectorVectorString lists = null。 try { lists = (VectorVectorString) ((MainSql) mSql) .queryLikeEmpnId(())。 } catch (Exception e1) { // TODO Autogenerated catch block ()。 } jt = (lists)。 } (true)。 (0, 0, 600, 300)。 (jt)。 (jt)。 ()。 } } } } }參考文獻(xiàn)[1] Bruce Eckel. 侯捷(譯). 《Java編程思想》. ,20029[2] steven feuresten, bill pribyl. 林琦,王宇(譯).《Oracle9i PL SQL程序設(shè)計(jì)》.中國(guó)電力出版社,20051[3] 王珊,薩師煊.《數(shù)據(jù)庫(kù)系統(tǒng)概論》.:高等教育出版社,200
點(diǎn)擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1