• 大小: 59KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: Java
  • 标签: 经典  购物车  程序  

资源简介

用Java编写的购物车系统,经典的编写,功能多多。一起分享一下我我的编程。

资源截图

代码片段和文件信息

package shopping;

import java.awt.Toolkit;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import java.awt.Dimension;

public class App {
  boolean packframe = false;

  /**
   * Construct and show the application.
   */
  public App() {
    FrmMain frame = new FrmMain();
    // Validate frames that have preset sizes
    // Pack frames that have useful preferred size info e.g. from their layout
    if (packframe) {
      frame.pack();
    }
    else {
      frame.validate();
    }

    // Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }
    frame.setLocation( (screenSize.width - frameSize.width) / 2
                      (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
  }

  /**
   * Application entry point.
   *
   * @param args String[]
   */
  public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        try {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        }
        catch (Exception exception) {
          exception.printStackTrace();
        }

        new App();
      }
    });
  }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         65  2008-12-25 11:48  Shopping\bak\shopping\DBAccess.java~1~

     文件        300  2009-01-04 01:24  Shopping\bak\shopping\DBAccess.java~2~

     文件        669  2009-01-04 01:29  Shopping\bak\shopping\DBAccess.java~3~

     文件        912  2009-01-04 01:31  Shopping\bak\shopping\DBAccess.java~4~

     文件         51  2008-12-25 13:33  Shopping\bak\shopping\DBAccess.java~5~

     文件       1004  2009-01-04 01:31  Shopping\bak\shopping\DBAccess.java~6~

     文件       1004  2009-01-04 01:53  Shopping\bak\shopping\DBAccess.java~7~

     文件        942  2009-01-04 12:40  Shopping\bak\shopping\DBAccess.java~8~

     文件        942  2009-02-21 15:06  Shopping\bak\shopping\DBAccess.java~9~

     文件       4555  2009-01-12 20:32  Shopping\bak\shopping\FrmMain.java~40~

     文件       4619  2009-01-12 20:35  Shopping\bak\shopping\FrmMain.java~41~

     文件       4655  2009-01-12 20:37  Shopping\bak\shopping\FrmMain.java~42~

     文件       4654  2009-01-12 20:39  Shopping\bak\shopping\FrmMain.java~43~

     文件       4826  2009-01-12 20:42  Shopping\bak\shopping\FrmMain.java~44~

     文件       4834  2009-01-12 20:48  Shopping\bak\shopping\FrmMain.java~45~

     文件       4826  2009-01-12 21:08  Shopping\bak\shopping\FrmMain.java~46~

     文件       4830  2009-01-20 15:08  Shopping\bak\shopping\FrmMain.java~47~

     文件       4830  2009-02-18 19:59  Shopping\bak\shopping\FrmMain.java~48~

     文件       4830  2009-08-10 15:58  Shopping\bak\shopping\FrmMain.java~49~

     文件       1511  2009-01-10 22:03  Shopping\bak\shopping\FrmPrice.java~1~

     文件       1524  2009-01-10 22:11  Shopping\bak\shopping\FrmPrice.java~2~

     文件       1546  2009-01-10 22:13  Shopping\bak\shopping\FrmPrice.java~3~

     文件       3714  2009-08-10 16:02  Shopping\bak\shopping\FrmShow.java~10~

     文件       3717  2009-08-10 16:08  Shopping\bak\shopping\FrmShow.java~11~

     文件       3755  2009-08-10 16:10  Shopping\bak\shopping\FrmShow.java~12~

     文件       3076  2009-01-10 21:47  Shopping\bak\shopping\FrmShow.java~3~

     文件       3078  2009-01-10 22:04  Shopping\bak\shopping\FrmShow.java~4~

     文件       3102  2009-01-10 22:08  Shopping\bak\shopping\FrmShow.java~5~

     文件       3100  2009-01-10 22:09  Shopping\bak\shopping\FrmShow.java~6~

     文件       3618  2009-01-10 22:11  Shopping\bak\shopping\FrmShow.java~7~

............此处省略36个文件信息

评论

共有 条评论