資源簡介
Java人事管理系統源碼+論文+答辯PPT
Java人事管理系統源碼+論文+答辯PPT
Java人事管理系統源碼+論文+答辯PPT

代碼片段和文件信息
package?attendance;
//download?by?http://www.codefans.net
import?org.eclipse.swt.widgets.Display;
import?org.eclipse.swt.widgets.Shell;
import?org.eclipse.swt.widgets.Label;
import?org.eclipse.swt.SWT;
import?org.eclipse.swt.widgets.Text;
import?org.eclipse.swt.widgets.Button;
import?org.eclipse.swt.events.SelectionAdapter;
import?org.eclipse.swt.events.SelectionEvent;
import?org.eclipse.swt.graphics.Image;
import?java.sql.*;
import?beans.Attend;
import?database.DBconnect;
import?javax.swing.JOptionPane;
import?org.eclipse.swt.widgets.Combo;
import?com.swtdesigner.SWTResourceManager;
public?class?Add?{
private?Text?id;
private?Text?actual;
private?Text?note;
Combo?year;
Combo?month;
/**
?*?Launch?the?application.
?*?@param?args
?*/
public?static?void?main(String[]?args)?{
try?{
Add?window?=?new?Add();
window.open();
}?catch?(Exception?e)?{
e.printStackTrace();
}
}
/**
?*?Open?the?window.
?*/
public?void?open()?{
Display?display?=?Display.getDefault();
final?Shell?shell?=?new?Shell();
shell.setBackground(SWTResourceManager.getColor(224?255?255));
shell.setSize(507?408);
shell.setText(“\u6DFB\u52A0\u6570\u636E“);
{
Label?label?=?new?Label(shell?SWT.NONE);
label.setBackground(SWTResourceManager.getColor(224?255?255));
label.setBounds(25?72?72?16);
label.setText(“\u5458\u5DE5\u7F16\u53F7\uFF1A“);
}
{
id?=?new?Text(shell?SWT.BORDER);
id.setBackground(SWTResourceManager.getColor(255?255?255));
id.setBounds(118?69?92?22);
}
{
Label?label?=?new?Label(shell?SWT.NONE);
label.setBackground(SWTResourceManager.getColor(224?255?255));
label.setBounds(25?114?32?16);
label.setText(“\u5E74\uFF1A“);
}
{
Label?label?=?new?Label(shell?SWT.NONE);
label.setBackground(SWTResourceManager.getColor(224?255?255));
label.setBounds(25?167?32?16);
label.setText(“\u6708\uFF1A“);
}
{
Label?label?=?new?Label(shell?SWT.NONE);
label.setBackground(SWTResourceManager.getColor(224?255?255));
label.setBounds(25?214?72?16);
label.setText(“\u5B9E\u5230\u5929\u6570\uFF1A“);
}
{
actual?=?new?Text(shell?SWT.BORDER);
actual.setBounds(130?214?71?22);
}
{
Label?label?=?new?Label(shell?SWT.NONE);
label.setBackground(SWTResourceManager.getColor(224?255?255));
label.setBounds(35?266?72?16);
label.setText(“\u5907\u6CE8\uFF1A“);
}
{
note?=?new?Text(shell?SWT.BORDER);
note.setBounds(118?263?332?66);
}
{
Button?button?=?new?Button(shell?SWT.NONE);
button.setImage(new?Image(null“images/add.jpg“));
button.addSelectionListener(new?SelectionAdapter()?{
public?void?widgetSelected(SelectionEvent?e)?{
String?sid?=?id.getText();
if?(sid.equals(““))?{
JOptionPane.showMessageDialog(null?“必須要輸入編號“);
}
Operate?op?=?new?Operate();
try?{
int?iid?=?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????9025109????????????????????233
- 上一篇:基于WEB的新生報到系統
- 下一篇:WKT解析包 jts-1.8.0
評論
共有 條評論