JAVA
驾驶员档案管理
自动化 09 02
刘 文 豪
2 0 0 9 2 4 2 9
2
Jdbc代码:
import .*;
public class jdbc {
public void fun() throws ClassotFoundException, SQLException
{
@SuppressWarnings("unused")
Statement ps;
@SuppressWarnings("unused")
ResultSet rs;
Class.forame("verDriver");
//@SuppressWarnings("unused")
Connection con =
DriverManager.getConnection("jdbc:sqlserver://127.0.0.1;Databaseame=Car;",
"sa", "sa");
ps = Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
ResultSet.COCUR_READ_OLY);
}
}
添加驾驶员档案信息的代码(包括添加记录日志、部分未列出的驾驶
员信息显示在备注里):
import .*;
import .*;
import .*;//包中的类是borland公司自己编写的布局管理
器类
import .*;
import .*;
@SuppressWarnings({ "unused", "serial" })
public class tjxjxx extends JFrame {
Statement ps,bhs;
ResultSet rs;
Connection con;
String url;
JLabel jLabel1 = new JLabel();
JTextField xh = new JTextField();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
3
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
JLabel jLabel7 = new JLabel();
JLabel jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JComboBox sex = new JComboBox();
JTextField xm = new JTextField();
JTextField rxrq = new JTextField();
JTextField rq = new JTextField();
JTextField tel = new JTextField();
JScrollPane jScrollPane1 = new JScrollPane();
JTextPane address = new JTextPane();
JScrollPane jScrollPane2 = new JScrollPane();
JTextPane comment = new JTextPane();
JButton ensure = new JButton();
JButton cancel = new JButton();
JComboBox jComboBox1 = new JComboBox();
JComboBox bh = new JComboBox();
public tjxjxx() {
try {
jbInit();
}
catch(Exception e) {
tackTrace();
}
try {
Class.forame("verDriver");
Connection con =
DriverManager.getConnection("jdbc:sqlserver://127.0.0.1;Databaseame=Car;",
"sa", "sa");
ps = Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
ResultSet.COCUR_READ_OLY);
bhs= Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
ResultSet.COCUR_READ_OLY);
rs = ps.executeQuery("select * from DiverInformation");
while(rs.next()){
bh.addItem(rs.getString("驾驶证号 "));}
}
catch (Exception err) {
String error = sage();
4
JOptionPane.showMessageDialog(null, "连接数据库错误!");
}
}
public static void main(String[] args) {
tjxjxx tjxjxx = new tjxjxx();
}
private void jbInit() throws Exception {
jLabel1.setFont(new ("Dialog", 0, 15));
jLabel1.setText("姓名");
jLabel1.setBounds(new Rectangle(26, 34, 58, 44));
this.setForeground(Color.black);
this.setResizable(false);
this.setState(Frame.ORMAL);
this.setTitle("添加驾驶员信息");
this.getContentPane().setLayout(null);
xh.setFont(new ("Dialog", 0, 15));
xh.setText("");
xh.setBounds(new Rectangle(90, 39, 143, 30));
jLabel2.setBounds(new Rectangle(26, 78, 58, 44));
jLabel2.setText("性别");
jLabel2.setFont(new ("Dialog", 0, 15));
jLabel3.setFont(new ("Dialog", 0, 15));
jLabel3.setText("驾驶号");
// t(new ("Dialog", 0, 15));
jLabel3.setBounds(new Rectangle(26, 125, 58, 44));
jLabel4.setBounds(new Rectangle(16, 164, 65, 44));
jLabel4.setText("出生日期");
jLabel4.setFont(new ("Dialog", 0, 15));
jLabel5.setBounds(new Rectangle(31, 215, 58, 44));
jLabel5.setText("备 注");
jLabel5.setFont(new ("Dialog", 0, 15));
jLabel6.setBounds(new Rectangle(264, 33, 58, 44));
jLabel6.setText("驾驶证号");
jLabel6.setFont(new ("Dialog", 0, 15));
jLabel7.setFont(new ("Dialog", 0, 15));
jLabel7.setText("领证日期");
jLabel7.setBounds(new Rectangle(256, 78, 65, 44));
jLabel8.setBounds(new Rectangle(262, 125, 65, 44));
jLabel8.setText("");
jLabel8.setFont(new ("Dialog", 0, 15));
jLabel9.setFont(new ("Dialog", 0, 15));
jLabel9.setText("入职日期");
jLabel9.setBounds(new Rectangle(256, 165, 65, 44));
sex.setFont(new ("Dialog", 0, 15));
5
sex.setBounds(new Rectangle(88, 88, 153, 32));
//m("男");
// m("女");
xm.setBounds(new Rectangle(347, 38, 126, 30));
xm.setText("");
xm.setFont(new ("Dialog", 0, 15));
rxrq.setBounds(new Rectangle(89, 173, 153, 30));
rxrq.setText("");
rxrq.setFont(new ("Dialog", 0, 15));
rq.setBounds(new Rectangle(348, 86, 126, 30));
rq.setText("");
rq.setFont(new ("Dialog", 0, 15));
tel.setBounds(new Rectangle(351, 130, 126, 30));
tel.addActionListener(new tjxjxx_tel_actionAdapter(this));
tel.setText("");
tel.setFont(new ("Dialog", 0, 15));
jScrollPane1.setBounds(new Rectangle(329, 185, 152, 131));
address.setFont(new ("Dialog", 0, 15));
address.setText("");
jScrollPane2.setBounds(new Rectangle(85, 217, 161, 118));
comment.setFont(new ("Dialog", 0, 15));
comment.setText("");
ensure.setBounds(new Rectangle(146, 358, 80, 33));
ensure.setFont(new ("Dialog", 0, 15));
ensure.setText("确 定");
ensure.addActionListener(new tjxjxx_ensure_actionAdapter(this));
cancel.setBounds(new Rectangle(341, 355, 74, 32));
cancel.setFont(new ("Dialog", 0, 15));
cancel.setText("取 消");
cancel.addActionListener(new tjxjxx_cancel_actionAdapter(this));
bh.setBounds(new Rectangle(88, 130, 154, 30));
bh.addItemListener(new tjxjxx_bh_itemAdapter(this));
bh.setBounds(new Rectangle(89, 129, 151, 31));
this.getContentPane().add(jLabel1, null);
this.getContentPane().add(xh, null);
this.getContentPane().add(jLabel3, null);
this.getContentPane().add(jLabel2, null);
this.getContentPane().add(jLabel5, null);
this.getContentPane().add(jLabel4, null);
this.getContentPane().add(sex, null);
this.getContentPane().add(rxrq, null);
this.getContentPane().add(jScrollPane1, null);
jScrollPane1.getViewport().add(address, null);
this.getContentPane().add(jScrollPane2, null);
6
jScrollPane2.getViewport().add(comment, null);
this.getContentPane().add(ensure, null);
this.getContentPane().add(cancel, null);
this.getContentPane().add(tel, null);
this.getContentPane().add(rq, null);
this.getContentPane().add(xm, null);
this.getContentPane().add(jLabel7, null);
this.getContentPane().add(jLabel6, null);
this.getContentPane().add(jLabel8, null);
this.getContentPane().add(jLabel9, null);
this.getContentPane().add(bh, null);
this.getContentPane().add(bh, null);
this.setBounds(200,200,600,450);
sex.addItem("男");
sex.addItem("女");
this.setVisible(true);
}
void tel_actionPerformed(ActionEvent e) {
}
void cancel_actionPerformed(ActionEvent e) {
this.dispose();
}
void ensure_actionPerformed(ActionEvent e) {
JOptionPane.showConfirmDialog(null,
"确定添加?", "添加驾驶员信息",
JOptionPane.YES_O_OPTIO);
try {
try {
ps.executeUpdate("Insert Into DriverInformation Values('"
+xh.getText().trim()+
"','" +xm.getText().trim() +
"','" +sex.getSelectedItem().toString() + "','"
+rq.getText().trim() + "','" +bh.getSelectedItem() +
"','"
+tel.getText().trim() + "','" +rxrq.getText().trim() +
"','" +address.getText().trim() + "','"
+comment.getText().trim() + "')");
Log log=new Log();
("rr", "添加"+xh.getText().trim()+"成功");
tream();
7
JOptionPane.showMessageDialog(null, "添加驾驶员信息成功");
this.dispose();
}
catch (SQLException sqle) {
Log log=new Log();
("rr","数据库连接出错");
tream();
String error = sage();
JOptionPane.showMessageDialog(null, error);
tackTrace();
}
}
catch (Exception ex) {
sage();
String error = sage();
JOptionPane.showMessageDialog(null, error);
tackTrace();
}
}
void bh_itemStateChanged(ItemEvent e) {
}
}
class tjxjxx_tel_actionAdapter implements Listener {
tjxjxx adaptee;
tjxjxx_tel_actionAdapter(tjxjxx adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.tel_actionPerformed(e);
}
}
class tjxjxx_cancel_actionAdapter implements Listener {
tjxjxx adaptee;
tjxjxx_cancel_actionAdapter(tjxjxx adaptee) {
this.adaptee = adaptee;
}
8
public void actionPerformed(ActionEvent e) {
adaptee.cancel_actionPerformed(e);
}
}
class tjxjxx_ensure_actionAdapter implements Listener {
tjxjxx adaptee;
tjxjxx_ensure_actionAdapter(tjxjxx adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.ensure_actionPerformed(e);
}
}
class tjxjxx_bh_itemAdapter implements stener {
tjxjxx adaptee;
tjxjxx_bh_itemAdapter(tjxjxx adaptee) {
this.adaptee = adaptee;
}
public void itemStateChanged(ItemEvent e) {
adaptee.bh_itemStateChanged(e);
}
}
修改和删除驾驶员档案信息代码(包括修改、删除记录日志):
import .*;
import .*;
import .*;
import .*;
@SuppressWarnings("serial")
public class xgxjxx
extends JFrame {
Statement ps, up,sc;
ResultSet rs;
Connection con;
String url;
JLabel jLabel1 = new JLabel();
9
JTextField xh = new JTextField();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
JLabel jLabel7 = new JLabel();
JLabel jLabel8 = new JLabel();
JLabel jLabel9 = new JLabel();
JTextField xm = new JTextField();
JTextField rxrq = new JTextField();
JTextField rq = new JTextField();
JTextField tel = new JTextField();
JScrollPane jScrollPane1 = new JScrollPane();
JTextPane address = new JTextPane();
JScrollPane jScrollPane2 = new JScrollPane();
JTextPane comment = new JTextPane();
JLabel jLabel10 = new JLabel();
JButton previous = new JButton();
JButton next = new JButton();
JButton last = new JButton();
JButton first = new JButton();
JButton xgxl = new JButton();
JButton gxjl = new JButton();
JButton cancel = new JButton();
JButton delete = new JButton();
JLabel jLabel11 = new JLabel();
JTextField sex = new JTextField();
JComboBox jComboBox1 = new JComboBox();
JComboBox jComboBox2 = new JComboBox();
JComboBox bh = new JComboBox();
public xgxjxx() {
try {
jbInit();
}
catch (Exception e) {
tackTrace();
}
try {
e("verDriver");
Connection con =
10
nection("jdbc:sqlserver://127.0.0.1;Databaseame=Car;",
"sa", "sa");
ps = Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
_READ_OLY);
sc=Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
_READ_OLY);
rs = eQuery("select * from DriverInformation");
while(()){
m(ing("驾驶号"));}
}
catch (Exception err) {
sage();
String error = sage();
ssageDialog(null, error);
}
try {
rs = eQuery("select * from student2"); //读取数据库
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
public static void main(String[] args) {
@SuppressWarnings("unused")
xgxjxx xgxjxx = new xgxjxx();
}
private void jbInit() throws Exception {
11
t(new ("Dialog", 0, 15));
t("姓名");
nds(new Rectangle(26, 34, 58, 44));
eground();
izable(false);
te();
le("修改驾驶员信息");
tentPane().setLayout(null);
kground();
t(new ("Dialog", 0, 15));
table(false);
t("");
nds(new Rectangle(90, 39, 143, 30));
nds(new Rectangle(26, 78, 58, 44));
t("性别");
t(new ("Dialog", 0, 15));
t(new ("Dialog", 0, 15));
t("驾驶号");
nds(new Rectangle(26, 125, 58, 44));
nds(new Rectangle(16, 164, 65, 44));
t("出生日期");
t(new ("Dialog", 0, 15));
nds(new Rectangle(31, 215, 58, 44));
t("备注");
t(new ("Dialog", 0, 15));
nds(new Rectangle(264, 33, 58, 44));
t("驾驶证号");
t(new ("Dialog", 0, 15));
t(new ("Dialog", 0, 15));
t("出生日期");
nds(new Rectangle(256, 78, 65, 44));
nds(new Rectangle(262, 125, 65, 44));
t("");
t(new ("Dialog", 0, 15));
t(new ("Dialog", 0, 15));
t("入职日期");
nds(new Rectangle(256, 165, 65, 44));
//m("男");
// m("女");
nds(new Rectangle(347, 38, 126, 30));
t("");
t(new ("Dialog", 0, 15));
nds(new Rectangle(89, 173, 153, 30));
t("");
12
t(new ("Dialog", 0, 15));
nds(new Rectangle(348, 86, 126, 30));
t("");
t(new ("Dialog", 0, 15));
nds(new Rectangle(351, 130, 126, 30));
t("");
t(new ("Dialog", 0, 15));
nds(new Rectangle(329, 185, 152, 131));
t(new ("Dialog", 0, 15));
t("");
nds(new Rectangle(85, 217, 161, 118));
t(new ("Dialog", 0, 15));
t("");
t(new ("Dialog", 0, 15));
t("查看驾驶员信息");
nds(new Rectangle(22, 343, 97, 33));
t("上一条记录");
ionListener(new xgxjxx_previous_actionAdapter(this));
nds(new Rectangle(147, 378, 111, 33));
t(new ("Dialog", 0, 15));
t(new ("Dialog", 0, 15));
nds(new Rectangle(264, 378, 111, 33));
t("下一条记录");
ionListener(new xgxjxx_next_actionAdapter(this));
t(new ("Dialog", 0, 15));
nds(new Rectangle(384, 378, 131, 33));
t("最后一条记录");
ionListener(new xgxjxx_last_actionAdapter(this));
t(new ("Dialog", 0, 15));
nds(new Rectangle(26, 378, 111, 33));
t("第一条记录");
ionListener(new xgxjxx_first_actionAdapter(this));
nds(new Rectangle(34, 452, 96, 37));
t(new ("Dialog", 0, 15));
t("修改记录");
ionListener(new xgxjxx_xgxl_actionAdapter(this));
t("更新记录");
ionListener(new xgxjxx_gxjl_actionAdapter(this));
t(new ("Dialog", 0, 15));
nds(new Rectangle(143, 452, 96, 37));
nds(new Rectangle(377, 453, 96, 38));
t(new ("Dialog", 0, 15));
t("退 出");
ionListener(new xgxjxx_cancel_actionAdapter(this));
13
t("删除记录");
ionListener(new xgxjxx_delete_actionAdapter(this));
t(new ("Dialog", 0, 15));
nds(new Rectangle(263, 452, 96, 38));
t(new ("Dialog", 0, 15));
t("修改驾驶员信息");
nds(new Rectangle(26, 416, 101, 37));
nds(new Rectangle(90, 84, 143, 30));
t("");
t(new ("Dialog", 0, 15));
t(new ("Dialog", 0, 15));
nds(new Rectangle(89, 125, 150, 35));
tentPane().add(jLabel1, null);
tentPane().add(xh, null);
tentPane().add(jLabel3, null);
tentPane().add(jLabel2, null);
tentPane().add(jLabel5, null);
tentPane().add(jLabel4, null);
tentPane().add(rxrq, null);
tentPane().add(jScrollPane1, null);
wport().add(address, null);
tentPane().add(jScrollPane2, null);
wport().add(comment, null);
tentPane().add(tel, null);
tentPane().add(rq, null);
tentPane().add(xm, null);
tentPane().add(jLabel7, null);
tentPane().add(jLabel6, null);
tentPane().add(jLabel8, null);
tentPane().add(jLabel9, null);
tentPane().add(jLabel10, null);
tentPane().add(previous, null);
tentPane().add(next, null);
tentPane().add(last, null);
tentPane().add(first, null);
tentPane().add(xgxl, null);
tentPane().add(gxjl, null);
tentPane().add(jLabel11, null);
tentPane().add(sex, null);
tentPane().add(delete, null);
tentPane().add(cancel, null);
tentPane().add(bh, null);
tentPane().add(bh, null);
14
tentPane().add(bh, null);
nds(200, 150, 550, 550);
ible(true);
}
void first_actionPerformed(ActionEvent e) {
try {
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
else
ssageDialog(null, "这是第一条记录");
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void next_actionPerformed(ActionEvent e) {
try {
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
else
ssageDialog(null, "这是最后一条记录");
}
15
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void previous_actionPerformed(ActionEvent e) {
try {
if (us()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
else
ssageDialog(null, "这是第一条记录");
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void last_actionPerformed(ActionEvent e) {
try {
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
16
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
else
ssageDialog(null, "这是最后一条记录");
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void gxjl_actionPerformed(ActionEvent e) {
try {
rs = eQuery("select * from student2"); //读取数据库
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void xgxl_actionPerformed(ActionEvent e) {
nfirmDialog(null,
"确定修改", "修改驾驶员信息",
_O_OPTIO);
17
try {
eUpdate("update student2 set student_ame='" +
t().trim() +
"',student_Sex='" + t().trim() +
"',born_Date='"
+ t().trim() + "',class_O='" +
ectedItem()+ "',tele_umber='"
+ t().trim() + "',ru_Date='" +
t().trim() + "',address='" +
t().trim() + "',comment='"
+ t().trim() + "'where student_ID='" +
t().trim() +
"'");
ssageDialog(null, "修改驾驶员信息成功");
//e();
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
void delete_actionPerformed(ActionEvent e) {
int v=nfirmDialog(this,"确定删除吗?将删除所有此驾驶
员信息","用户确认",
_CACEL_OPTIO,
ATIO_MESSAGE);
if(v==_OPTIO)
{
try {
eUpdate("delete from student2 where student_ID='" +
t().trim() +
"'");
eUpdate("delete from result where student_ID='" +
t().trim() +
"'");
Log log=new Log();
("rr","修改"+t().trim()+"成功");
tream();
18
ssageDialog(null, "删除驾驶员成功");
//e();
}
catch (SQLException sqle) {
String error = sage();
ssageDialog(null, error);
tackTrace();
}
}
try {
e("verDriver");
Connection con =
nection("jdbc:sqlserver://127.0.0.1;Databaseame=Car;",
"sa", "sa");
ps = Statement(ResultSet.
TYPE_SCROLL_ISESITIVE,
_READ_OLY);
}
catch (Exception err) {
String error = sage();
Log log=new Log();
("rr",error);
tream();
ssageDialog(null, error);
}
try {
rs = eQuery("select * from student2"); //读取数据库
if (()) {
t(ing("student_ID"));
t(ing("student_ame"));
t(ing("student_Sex"));
t(ing("born_Date").substring(0, 10));
m(ing("class_O"));
t(ing("tele_umber"));
t(ing("ru_Date").substring(0, 10));
t(ing("address"));
t(ing("comment"));
}
19
}
catch (SQLException sqle) {
String error = sage();
Log log=new Log();
("rr","修改驾驶员错误"+error);
tream();
ssageDialog(null, error);
tackTrace();
}
}
void cancel_actionPerformed(ActionEvent e) {
e();
}
void bh_actionPerformed(ActionEvent e) {
}
}
class xgxjxx_first_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_first_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_next_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_next_actionAdapter(xgxjxx adaptee) {
e = adaptee;
20
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_previous_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_previous_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
us_actionPerformed(e);
}
}
class xgxjxx_last_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_last_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_gxjl_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_gxjl_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
21
}
class xgxjxx_xgxl_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_xgxl_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_delete_actionAdapter
implements Listener {
xgxjxx adaptee;
xgxjxx_delete_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_cancel_actionAdapter implements Listener {
xgxjxx adaptee;
xgxjxx_cancel_actionAdapter(xgxjxx adaptee) {
e = adaptee;
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
class xgxjxx_bh_actionAdapter implements Listener {
xgxjxx adaptee;
xgxjxx_bh_actionAdapter(xgxjxx adaptee) {
e = adaptee;
22
}
public void actionPerformed(ActionEvent e) {
_actionPerformed(e);
}
}
本文发布于:2023-05-24 21:02:38,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/falv/fa/82/107782.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |