• 大小: 1.65MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-29
  • 语言: Java
  • 标签: 手机销售  

资源简介

后台连接数据库,前端有友好的操作界面;支持各种信息的输入,包括商品信息、客户订单、厂商信息等;支持各种信息的查询、修改和维护;销售报表的生成。

资源截图

代码片段和文件信息

package phonesell;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class Alarm extends JDialog implements ActionListener{

protected JLabel lbltitle=new JLabel();
protected JLabel lblStatus=new JLabel();
protected JTable table;
protected String sql;
private JButton btnPrint=new JButton(“打印“);

  
public Alarm(Jframe ownerString sqlString tableName){
super(ownertrue);
table=ControlTable.getTabel(sqltableName);
btnPrint.addActionListener(this);
this.addWindowListener(new WindowCloser());
setup();
}

public void setup(){
setLayout(new BorderLayout());
JPanel content=new JPanel(new BorderLayout());
content.setBorder(BorderFactory.createRaisedBevelBorder());
JPanel pnl=new JPanel(new BorderLayout());
JScrollPane scr=new JScrollPane(table);
JPanel status=new JPanel();
status.add(lblStatus);
status.add(btnPrint);
lbltitle.setHorizontalAlignment(JLabel.CENTER);
pnl.setBorder(BorderFactory.createEtchedBorder());
pnl.add(lbltitleBorderLayout.NORTH);
pnl.add(scrBorderLayout.CENTER);
pnl.add(statusBorderLayout.SOUTH);
pnl.add(scr);
content.add(pnl);
add(content);
setSize(400300);
Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();
    setLocation((screen.width-this.getWidth())/2(screen.height-this.getHeight())/2);
}
public void actionPerformed(ActionEvent e){
try{
table.print();
}catch(Exception ex){
ex.printStackTrace();
}

}
private class WindowCloser extends WindowAdapter{
public void windowClosing(WindowEvent e){
Alarm.this.dispose();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         320  2017-06-04 08:51  .classpath
     文件         385  2017-05-29 00:01  .project
     目录           0  2017-06-09 12:08  bin\
     目录           0  2017-06-09 12:08  bin\phonesell\
     文件         738  2017-06-09 12:08  bin\phonesell\Alarm$WindowCloser.class
     文件        3000  2017-06-09 12:08  bin\phonesell\Alarm.class
     文件        9257  2017-06-09 12:08  bin\phonesell\BackTel.class
     文件         855  2017-06-09 12:08  bin\phonesell\Backup$WindowCloser.class
     文件        6964  2017-06-09 12:08  bin\phonesell\Backup.class
     文件       10022  2017-06-09 12:08  bin\phonesell\ChangeTel.class
     文件         762  2017-06-09 12:08  bin\phonesell\Checkage$WindowCloser.class
     文件        6324  2017-06-09 12:08  bin\phonesell\Checkage.class
     文件         800  2017-06-09 12:15  bin\phonesell\ConnectDialog$WindowCloser.class
     文件        7480  2017-06-09 12:15  bin\phonesell\ConnectDialog.class
     文件         778  2017-06-09 12:08  bin\phonesell\ControlAll$WindowCloser.class
     文件        7270  2017-06-09 12:08  bin\phonesell\ControlAll.class
     文件        5367  2017-06-09 12:08  bin\phonesell\ControlAllWithSon$Son.class
     文件         834  2017-06-09 12:08  bin\phonesell\ControlAllWithSon$WindowCloser.class
     文件        8197  2017-06-09 12:08  bin\phonesell\ControlAllWithSon.class
     文件         291  2017-06-09 12:08  bin\phonesell\ControlDatabase.class
     文件        2820  2017-06-09 12:08  bin\phonesell\ControlTable.class
     文件         686  2017-06-09 12:08  bin\phonesell\Faceframe$1.class
     文件        9560  2017-06-09 12:08  bin\phonesell\Faceframe$CenterParty.class
     文件         847  2017-06-09 12:08  bin\phonesell\Faceframe$WindowCloser.class
     文件        5626  2017-06-09 12:08  bin\phonesell\Faceframe.class
     文件         780  2017-06-09 12:08  bin\phonesell\frameLogin$WindowCloser.class
     文件        4957  2017-06-09 12:08  bin\phonesell\frameLogin.class
     文件         742  2017-06-09 12:08  bin\phonesell\Groupx$WindowCloser.class
     文件        1440  2017-06-09 12:08  bin\phonesell\Groupx.class
     文件        1238  2017-06-09 12:08  bin\phonesell\HotSale.class
     文件        7548  2017-06-09 12:08  bin\phonesell\JLXControlDatabase.class
............此处省略91个文件信息

评论

共有 条评论