资源简介
JAVA FOUNDATION CLASS JFC/Swing 1.1.1
代码片段和文件信息
/*
* @(#)CreateCoffees.java 1.2 99/04/23
*
* Copyright (c) 1997-1999 by Sun Microsystems Inc. All Rights Reserved.
*
* Sun grants you (“Licensee“) a non-exclusive royalty free license to use
* modify and redistribute this software in source and binary code form
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided “AS IS“ without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS REPRESENTATIONS AND WARRANTIES INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE PROFIT OR DATA OR FOR DIRECT
* INDIRECT SPECIAL CONSEQUENTIAL INCIDENTAL OR PUNITIVE DAMAGES HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft air traffic aircraft navigation or aircraft communications; or in
* the design construction operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
import java.sql.*;
// Create the Coffee Table.
public class CreateCoffees {
public static void main(String args[]) {
String url = “jdbc:odbc:CafeJava“;
Connection con;
String createString;
createString = “create table COFFEES “ +
“(COF_NAME varchar(32) “ +
“SUP_ID int “ +
“PRICE float “ +
“SALES int “ +
“TOTAL int)“;
Statement stmt;
try {
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver“);
} catch(java.lang.ClassNotFoundException e) {
System.err.print(“ClassNotFoundException: “);
System.err.println(e.getMessage());
}
try {
con = DriverManager.getConnection(url
“Admin“ “duke1“);
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println(“SQLException: “ + ex.getMessage());
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 1999-07-15 17:40 swing-1.1.1fcs\
文件 47692 1999-07-15 17:39 swing-1.1.1fcs\CHANGES.txt
文件 6494 1999-07-15 17:39 swing-1.1.1fcs\LICENSE.txt
文件 8742 1999-07-15 17:39 swing-1.1.1fcs\README.txt
文件 6574 1999-07-15 17:39 swing-1.1.1fcs\README.html
目录 0 1999-07-15 17:40 swing-1.1.1fcs\examples\
目录 0 1999-07-15 17:29 swing-1.1.1fcs\examples\SwingSet\
目录 0 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\
目录 0 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\
目录 0 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\
文件 3253 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\banana.gif
文件 3202 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\broccoli.gif
文件 3759 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\burger.gif
文件 2687 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\cake.gif
文件 3687 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\cantaloupe.gif
文件 2428 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\carrot.gif
文件 2457 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\corn.gif
文件 3945 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\donut.gif
文件 3580 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\fries.gif
文件 3094 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\grapes.gif
文件 2447 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\hotdog.gif
文件 1290 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\icecream.gif
文件 3515 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\peach.gif
文件 1694 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\peas.gif
文件 3249 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\pie.gif
文件 3714 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\pizza.gif
文件 2179 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\radish.gif
文件 2267 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\softdrink.gif
文件 2700 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\treat.gif
文件 3723 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\food\watermelon.gif
目录 0 1999-07-15 17:28 swing-1.1.1fcs\examples\SwingSet\images\ImageClub\misc\
............此处省略2035个文件信息
相关资源
- java swing局域网的聊天源码
- 基于java swing的在线餐馆订餐系统
- java程序员工工资管理系统,含前台用
- Java swing基于JMF的音乐播放器毕设项目
- java Swing demo 点餐
- java swing+mysql 实现账务管理系统
- java实现酒店管理系统项目源码
- mysql + java swing开发的教务管理系统
- 图书管理系统.zip177801
- java swing+access/mysql开发零件销售管理系
- Swing实现的QQ最终版
- JAVA SWing 实现C/S模式的数据库编程及
- 基于java开发的俄罗斯方块游戏
- WindowBuilder for eclipse 4.4 luna
- java swing 坦克大战
- 订单管理系统Java swing poi
- 基于Java+Swing 全套商场管理系统.rar
- 4套Java swing sqlserver实现的进销存管理
- JAVA SWING宾馆管理系统
- java swing mysql实现的仓库商品管理系统
- DJ NativeSwing开源包
- 两套 五子棋小游戏源码(控制台+Ja
- Java Swing英文本pdf教程(Java Swing (O‘
- java swing俄罗斯方块项目
- swing框架汇总(文档以及)
- 基于Java Swing的汽车租赁平台
- 一个基于javase的学生管理系统
- swing界面socket多线程聊天室
- 基于java swing与mysql的销售管理系统源
- javaswingmysql移动银行系统.zip
评论
共有 条评论