資源簡介
StuManager.zip

代碼片段和文件信息
package?com.jmy.count;
import?java.awt.*;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.sql.Connection;
import?java.sql.DriverManager;
import?java.sql.PreparedStatement;
import?java.sql.SQLException;
import?javax.swing.*;
import?com.jmy_jiemian.DB;
public?class?Carry?extends?Jframe?implements?ActionListener
{
JPanel?jp1?=?new?JPanel();
JPanel?jp2?=?new?JPanel();
JTable?jt;
?JLabel?jl1?=?new?JLabel(“輸入月份:“);
JButton?jb1?=?new?JButton(“查詢“);
JButton?jb2?=?new?JButton(“??????返回??????“);
JTextField?jtf1?=?new?JTextField(12);
JScrollPane?jsp=new?JScrollPane();
CarryModel?stModel=new?CarryModel();
public?void?create(){
//this.add(jp2?BorderLayout.NORTH);
jp1.add(jl1);
jp1.add(jtf1);
jp1.add(jb1);
jp1.add(jb2);
this.add(jp1?BorderLayout.SOUTH);
stModel.insertDatabase(“select?*?from?carry_info“);
jt=new?JTable(stModel);
jsp=new?JScrollPane(jt);
this.add(jspBorderLayout.CENTER);
jb1.addActionListener(this);
jb2.addActionListener(this);
this.settitle(“送水統計查詢“);//?標題
this.pack();
this.setBounds(200?100?500?400);
this.setLocation(400?100);?//設置窗口顯示的位置
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);//?設置可退出
this.setVisible(true);//?設置可見
}
@Override
public?void?actionPerformed(ActionEvent?e)?{
//?TODO?Auto-generated?method?stub
if?(e.getSource()?==?jb1)?{//---------------?月份查詢
String?sql?=?“EXEC?carry_water1?‘“
+?jtf1.getText()?+?“‘“;
stModel?=?new?CarryModel();??
????????stModel.insertDatabase(sql);??
????????jt.setModel(stModel);
}
if?(e.getSource()?==?jb2)?{//?返回
new?DB().create();
this.dispose();
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-03-08?14:08??StuManager\
?????文件?????????381??2017-12-25?11:14??StuManager\.classpath
?????目錄???????????0??2017-12-27?20:03??StuManager\.myeclipse\
?????目錄???????????0??2017-12-27?20:03??StuManager\.myeclipse\profiler\
?????文件????????1336??2017-12-27?20:03??StuManager\.myeclipse\profiler\DB.xm
?????文件?????????386??2017-12-25?11:04??StuManager\.project
?????目錄???????????0??2017-12-25?11:04??StuManager\.settings\
?????文件?????????598??2017-12-25?11:04??StuManager\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\com\
?????目錄???????????0??2018-03-07?18:08??StuManager\bin\com\jmy\
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\com\jmy\Login\
?????文件?????????692??2018-03-08?15:00??StuManager\bin\com\jmy\Login\Login$1.class
?????文件????????3772??2018-03-08?15:00??StuManager\bin\com\jmy\Login\Login.class
?????目錄???????????0??2018-03-07?18:41??StuManager\bin\com\jmy\count\
?????文件????????2693??2018-03-08?17:50??StuManager\bin\com\jmy\count\Carry.class
?????文件????????3411??2018-03-07?20:54??StuManager\bin\com\jmy\count\CarryModel.class
?????文件????????3393??2018-03-07?20:56??StuManager\bin\com\jmy\count\UseModel.class
?????文件????????2679??2018-03-07?20:56??StuManager\bin\com\jmy\count\use.class
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\com\jmy\customer\
?????文件????????5664??2018-03-07?16:51??StuManager\bin\com\jmy\customer\Customer.class
?????文件????????3399??2018-03-06?13:14??StuManager\bin\com\jmy\customer\CustomerModel.class
?????文件????????4343??2018-03-07?16:34??StuManager\bin\com\jmy\customer\InsertCustomer.class
?????文件????????4824??2018-03-07?16:50??StuManager\bin\com\jmy\customer\UpdateCustomer.class
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\com\jmy\model\
?????文件????????3480??2018-03-06?13:14??StuManager\bin\com\jmy\model\testview.class
?????目錄???????????0??2018-03-06?13:14??StuManager\bin\com\jmy\money\
?????文件????????5654??2018-03-07?19:13??StuManager\bin\com\jmy\money\Expend.class
?????文件????????3563??2018-03-07?15:19??StuManager\bin\com\jmy\money\ExpendModel.class
?????文件????????5648??2018-03-07?19:13??StuManager\bin\com\jmy\money\Income.class
?????文件????????3560??2018-03-07?15:19??StuManager\bin\com\jmy\money\IncomeModel.class
............此處省略88個文件信息
- 上一篇:Linux-Arm(嵌入式開發參考).pdf
- 下一篇:OTIS調試手機端.zip
評論
共有 條評論