• 大小: 3.43MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: Java
  • 标签: JAVA  SWING  MVC  超市收银  

资源简介

使用swing编程实现的基于三层架构的超市收银系统(swing插件jigloo_462),供初学者参考,内带数据库文件和sql2005驱动,导入到eclipse中即可运行

资源截图

代码片段和文件信息

/*
 */
package com.cloudgarden.layout;

/**
 * Used by both AnchorLayout (SWT) and AnchorLayoutManager (Swing)
 */
public class AnchorConstraint {

/**
 * Meaning: This side is not anchored.
 */
public static final int ANCHOR_NONE = 0;

/**
 * (Relative anchor) Meaning: This side is anchored so that it always 
 * occurs a fixed fraction of
 * the distance along it‘s parent‘s side. The position is calculated by
 * the formula “ position = (parent side)*(value)/1000 “ so for
 * instance if top=100 and topType == ANCHOR_REL then the
 * value of y for this side would be (parent height)*top/1000.
 */
public static final int ANCHOR_REL = 1;

/**
 * (Absolute anchor) Meaning: This side is anchored a fixed distance
 * in pixels (given by the value for this side) from it‘s parent‘s respective side.
 * For instance if bottomType == ANCHOR_ABS and bottom = 100 then the
 * bottom side of this component will remain fixed 100 pixels from
 * the bottom side of it‘s parent container.
 */
public static final int ANCHOR_ABS = 2;

public int top;
public int bottom;
public int left;
public int right;
public int topType;
public int bottomType;
public int rightType;
public int leftType;

public AnchorConstraint() {
this(0 0 0 0 ANCHOR_NONE ANCHOR_NONE ANCHOR_NONE ANCHOR_NONE);
}

/**
 * Creates an AnchorConstraint.
 * @param top - value (relative or absolute) for top side
 * @param right - like ‘top‘ but for right side
 * @param bottom - like ‘top‘ but for bottom side
 * @param left - like ‘top‘ but for left side
 * @param topType - either ANCHOR_ABS ANCHOR_REL or ANCHOR_NONE
 * to indicate whether the ‘top‘ parameter is an absolute value (in pixels) or
 * a fractional value (in 1/1000 ths) of the height of this component‘s parent
 * denoting where the anchor will be applied (if at all).
 * @param rightType - like ‘topType‘ but for right side
 * @param bottomType - like ‘topType‘ but for bottom side
 * @param leftType - like ‘topType‘ but for left side
 */
public AnchorConstraint(
int top
int right
int bottom
int left
int topType
int rightType
int bottomType
int leftType) {
this.top = top;
this.bottom = bottom;
this.left = left;
this.right = right;
this.topType = topType;
this.rightType = rightType;
this.bottomType = bottomType;
this.leftType = leftType;
}

}

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

     文件        286  2010-10-13 17:21  SaleShopManager\.classpath

     文件        391  2010-10-13 17:10  SaleShopManager\.project

     文件        920  2010-10-27 08:22  SaleShopManager\bin\com\cloudgarden\layout\AnchorConstraint.class

     文件       5021  2010-10-27 08:22  SaleShopManager\bin\com\cloudgarden\layout\AnchorLayout.class

     文件      92614  2009-09-03 10:10  SaleShopManager\bin\com\image\about.png

     文件       4872  2009-09-03 10:10  SaleShopManager\bin\com\image\aboutIcon.png

     文件      81806  2009-09-03 10:10  SaleShopManager\bin\com\image\aboutversion.PNG

     文件     305382  2009-09-03 10:10  SaleShopManager\bin\com\image\background.PNG

     文件       4135  2009-09-03 10:10  SaleShopManager\bin\com\image\CzyGL.png

     文件       5086  2009-09-03 10:10  SaleShopManager\bin\com\image\exitIcon.png

     文件       3321  2009-09-03 10:10  SaleShopManager\bin\com\image\frameIcon.png

     文件       4447  2009-09-03 10:10  SaleShopManager\bin\com\image\GengGaiMiMa.png

     文件       5420  2009-09-03 10:10  SaleShopManager\bin\com\image\GongYingShangChaXun.png

     文件       5287  2009-09-03 10:10  SaleShopManager\bin\com\image\GysGuanLi.png

     文件       4414  2009-09-03 10:10  SaleShopManager\bin\com\image\JiaGeTiaoZheng.png

     文件       4198  2009-09-03 10:10  SaleShopManager\bin\com\image\JinHuoDan.png

     文件       4120  2009-09-03 10:10  SaleShopManager\bin\com\image\JinHuoTuiHuo.png

     文件       5064  2009-09-03 10:10  SaleShopManager\bin\com\image\KeHuChaXun.png

     文件       2137  2009-09-03 10:10  SaleShopManager\bin\com\image\KeHuGuanLi.png

     文件       4261  2009-09-03 10:10  SaleShopManager\bin\com\image\KuCunPanDian.png

     文件      85227  2009-09-03 10:10  SaleShopManager\bin\com\image\login.png

     文件       4021  2009-09-03 10:10  SaleShopManager\bin\com\image\QuanManager.png

     文件       4606  2009-09-03 10:10  SaleShopManager\bin\com\image\RuKuChaXun.png

     文件       4593  2009-09-03 10:10  SaleShopManager\bin\com\image\RuKuTuiHuoChaXun.png

     文件       4935  2009-09-03 10:10  SaleShopManager\bin\com\image\ShangPinChaXun.png

     文件       4545  2009-09-03 10:10  SaleShopManager\bin\com\image\ShangPinGuanLi.png

     文件      81806  2009-09-03 10:10  SaleShopManager\bin\com\image\splash.PNG

     文件       9049  2010-10-27 08:22  SaleShopManager\bin\com\image\xdot.gif

     文件       4192  2009-09-03 10:10  SaleShopManager\bin\com\image\XiaoShouChaXun.png

     文件       3867  2009-09-03 10:10  SaleShopManager\bin\com\image\XiaoShouDan.png

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

评论

共有 条评论