资源简介
swt+spring+mybatis账号生成,excel
代码片段和文件信息
package com.mybatis;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.mybatis.util.UserServiceFactory;
public class addInPut extends Jframe {
/**
*
*/
private static final long serialVersionUID = 7187786002406037773L;
private JTextField snTxt;
private JTextField agentTxt;
private JTextField comTxt;
Toolkit kit = Toolkit.getDefaultToolkit();
Image icon = kit.getImage(“./image/aia_logo.png“);
public addInPut() {
this.setSize(300 285);// 设置大小
this.setLocationRelativeTo(this);
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
this.setResizable(false);
this.settitle(“InPut添加“);
this.setIconImage(icon);
this.add(new PanelImageTest());
}
class PanelImageTest extends JPanel {
/**
*
*/
private static final long serialVersionUID = 1L;
private Image image;
public PanelImageTest() {
super();
setOpaque(true);
Toolkit kit = Toolkit.getDefaultToolkit();
image = kit.getImage(“./image/background.png“);
JLabel sn = new JLabel(“sn序列号:“);
JLabel agent = new JLabel(“代理人编号:“);
JLabel com = new JLabel(“分支公司:“);
JButton idButton = new JButton(“添加“);
JButton outButton = new JButton(“取消“);
snTxt = new JTextField(10);
agentTxt = new JTextField(10);
comTxt = new JTextField(10);
sn.setBounds(40 40 70 20);
snTxt.setBounds(120 40 120 20);
agent.setBounds(40 80 70 20);
agentTxt.setBounds(120 80 120 20);
com.setBounds(40 120 120 20);
comTxt.setBounds(120 120 120 20);
idButton.setBounds(70 190 60 25);
outButton.setBounds(150 190 60 25);
outButton.addActionListener(new ExitButtonActionListener());
idButton.addActionListener(new LandButtonActionListener());// 为登录按钮添加事件监听器
this.setLayout(null);
this.add(snTxt);
this.add(agentTxt);
this.add(comTxt);
this.add(sn);
this.add(agent);
this.add(com);
this.add(idButton);
this.add(outButton);
}
public void paintComponent(Graphics g) {
super.paintComponent(g);
setBackground(Color.WHITE);
if (image != null) {
int height = image.getHeight(this);
int width = image.getWidth(this);
if (height != -1 && height > getHeight())
height = getHeight();
if (width != -1 && width > getWidth())
width = getWidth();
int x = (int) (((double) (getWidth() - width)) / 2.0);
int y = (int) (((double) (getHeight() - height)) / 2.0);
g.drawImage(image x y width height this);
}
}
}
class ExitButtonActionListener implements ActionListener {
public void actionPerformed(ActionEvent arg0) {
outputExcel out = new outputExcel
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-04-18 12:50 outPut\
文件 2473 2013-04-16 13:24 outPut\.classpath
文件 851 2013-04-16 12:42 outPut\.project
目录 0 2013-04-16 12:42 outPut\.settings\
文件 364 2013-04-16 12:42 outPut\.settings\org.eclipse.jdt.core.prefs
文件 347 2013-04-16 12:42 outPut\.settings\org.eclipse.wst.common.component
文件 233 2013-04-16 12:42 outPut\.settings\org.eclipse.wst.common.project.facet.core.xm
目录 0 2013-04-16 13:07 outPut\appClientModule\
目录 0 2013-04-16 12:42 outPut\appClientModule\me
文件 43 2013-04-16 12:42 outPut\appClientModule\me
文件 282 2013-04-16 12:44 outPut\appClientModule\MyBatis-Configuration.xm
文件 1620 2013-04-16 13:28 outPut\appClientModule\applicationContext.xm
目录 0 2013-04-16 12:43 outPut\appClientModule\com\
目录 0 2013-04-17 09:50 outPut\appClientModule\com\mybatis\
文件 420 2013-04-16 14:45 outPut\appClientModule\com\mybatis\ServiceException.java
文件 2064 2013-04-18 17:41 outPut\appClientModule\com\mybatis\UserDao.java
文件 3697 2013-04-18 17:45 outPut\appClientModule\com\mybatis\UserDaoMapper.xm
文件 2551 2013-04-18 17:40 outPut\appClientModule\com\mybatis\UserService.java
文件 4001 2013-04-18 17:41 outPut\appClientModule\com\mybatis\UserServiceImpl.java
文件 4660 2013-04-18 11:28 outPut\appClientModule\com\mybatis\addInPut.java
目录 0 2013-04-16 13:40 outPut\appClientModule\com\mybatis\bean\
文件 642 2013-04-17 13:15 outPut\appClientModule\com\mybatis\bean\InPutBean.java
文件 877 2013-04-16 14:02 outPut\appClientModule\com\mybatis\bean\OutPutBean.java
文件 13929 2013-04-18 18:03 outPut\appClientModule\com\mybatis\outputExcel.java
目录 0 2013-04-16 14:07 outPut\appClientModule\com\mybatis\util\
文件 4250 2013-04-18 14:43 outPut\appClientModule\com\mybatis\util\ExportExcel.java
文件 1790 2013-04-16 13:32 outPut\appClientModule\com\mybatis\util\MD5_test.java
文件 3058 2013-04-16 13:32 outPut\appClientModule\com\mybatis\util\RandomTest.java
文件 3366 2013-04-16 13:32 outPut\appClientModule\com\mybatis\util\ReadExcel.java
文件 561 2013-04-16 14:16 outPut\appClientModule\com\mybatis\util\UserServiceFactory.java
文件 1227 2012-11-29 09:54 outPut\appClientModule\log4j.properties
............此处省略67个文件信息
- 上一篇:dps7.05 完全安装破解版
- 下一篇:VOSviewer安装包
评论
共有 条评论