OffWorkPanel.java~9~
资源名称:Java.rar [点击查看]
上传用户:liming9091
上传日期:2014-10-27
资源大小:3376k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package manpowersystem;
- /**
- * <p>Title: </p>
- * <p>Description: </p>
- * <p>Copyright: Copyright (c) 2003</p>
- * <p>Company: </p>
- * @author not attributable
- * @version 1.0
- */
- import java.io.*;
- import java.util.*;
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import javax.swing.event.*;
- import javax.swing.border.*;
- import javax.swing.table.*;
- import com.borland.jbcl.layout.*;
- public class OffWorkPanel extends TablePanel {
- String[] arrField = {"工 号", "姓 名", "下班时间", "备 注"};
- public OffWorkPanel() {
- tableModel = new DefaultTableModel( arrData, arrField );
- jRecordTable = new JTable(tableModel);
- jTableScrollPane.getViewport().add( jRecordTable, null );
- this.setTitle("下班登记页面");
- }
- public void DelRecord() {
- intRow = jRecordTable.getSelectedRow();
- try {
- database.DeleteData( tableModel.getValueAt( intRow, 0 ).toString() );
- }
- catch ( Exception e ) {
- e.printStackTrace();
- }
- UpdateRecord(); //更新表格
- }
- }