![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
文章平均质量分 74
美好晨光
专业:计算机软件
展开
-
格式字符串 String.format
public static String format(String format, Object... args)使用指定的格式字符串和参数返回一个格式化字符串。 始终使用 Locale.getDefault() 返回的语言环境。 参数: format - 格式字符串 args - 格式字符串中由格式说明符引用的参数。如果原创 2009-07-19 14:29:00 · 613 阅读 · 0 评论 -
Notepad Find
package notepad;import javax.swing.JDialog;import javax.swing.JLabel;import java.awt.Container;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAda原创 2009-11-28 09:32:00 · 342 阅读 · 0 评论 -
Main.java
package yaopin;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;import java.awt.BorderLayout;import java.aw原创 2009-11-28 09:34:00 · 451 阅读 · 0 评论 -
MedicineType.java
package yaopin;import javax.swing.JPanel;import java.awt.Component;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;im原创 2009-11-28 09:35:00 · 340 阅读 · 0 评论 -
MedicineDTO.java
package model;public class MedicineDTO{ private String mdCode; private String mdName; private String spellCode; private String typeCode; private String specContent; private String mdUnit; pri原创 2009-11-28 09:37:00 · 316 阅读 · 0 评论 -
MedicineTypeDAO.java
package model;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Vector;import database原创 2009-11-28 09:38:00 · 328 阅读 · 0 评论 -
Worker.java
package yaopin;import java.awt.Component;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JComboBox;imp原创 2009-11-28 09:36:00 · 576 阅读 · 0 评论 -
MedicineDAO.java
package model;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Vector;import database原创 2009-11-28 09:37:00 · 349 阅读 · 0 评论 -
UserDAO.java
package model;import database.ConnectionDB;import java.sql.*;import java.text.SimpleDateFormat;import java.util.Vector;public class UserDAO{ private UserDTO userDTO; private Connection conn;原创 2009-11-28 09:40:00 · 807 阅读 · 0 评论 -
UserDTO.java
package model;public class UserDTO{ private String workerID; private String userName; private String password; private String departmentName; private String workKind; private String sex; private St原创 2009-11-28 09:40:00 · 1326 阅读 · 0 评论 -
ConnectionDB.java
package database;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;public class ConnectionDB{ public static Connection getConnection() { Connection conn = nu原创 2009-11-28 09:41:00 · 376 阅读 · 0 评论 -
ProviderDTO.java
package model;public class ProviderDTO{ private String providerID; private String providerName; private String linkman; private String linkPhone; private String fax; private String email; private S原创 2009-11-28 09:39:00 · 297 阅读 · 0 评论 -
Java 调用cmd.exe命令
java的Runtime.getRuntime().exec(commandText)可以调用执行cmd指令。cmd /c dir 是执行完dir命令后关闭命令窗口。cmd /k dir 是执行完dir命令后不关闭命令窗口。cmd /c start dir 会打开一个新窗口后执行dir指令,原窗口会关闭。cmd /k start dir 会打开一个新窗口后执行dir指令,原窗口不会原创 2009-07-19 14:31:00 · 573 阅读 · 0 评论 -
常用数据库JDBC连接方法
1. ODBC Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ); Connection cn = DriverManager.getConnection( "jdbc:odbc:DSN", sUsr, sPwd );2. Microsoft SQLServer(http://www.microsoft.com) Class.forName( "c原创 2009-07-19 14:32:00 · 292 阅读 · 0 评论 -
Notepad Main
package notepad;import java.awt.BorderLayout;import java.awt.Component;import javax.swing.ButtonGroup;import javax.swing.JCheckBoxMenuItem;import javax.swing.JFileChooser;import javax.swing.JOptionP原创 2009-11-28 09:30:00 · 387 阅读 · 0 评论 -
Notepad Font
package notepad;import java.awt.Color;import java.awt.Container;import java.awt.Font;import javax.swing.JDialog;import javax.swing.JLabel;import java.awt.event.ActionEvent;import java.awt.event.Act原创 2009-11-28 09:33:00 · 446 阅读 · 0 评论 -
Login.java
package yaopin;import javax.swing.ImageIcon;import javax.swing.JOptionPane;import javax.swing.JPanel;import javax.swing.JFrame;import javax.swing.JLabel;import java.awt.Rectangle;import java.awt.ev原创 2009-11-28 09:34:00 · 595 阅读 · 0 评论 -
Medicine.java
package yaopin;import javax.swing.JPanel;import java.awt.Component;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JComboBox;impo原创 2009-11-28 09:35:00 · 409 阅读 · 0 评论 -
ProviderDAO.java
package model;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Vector;import database原创 2009-11-28 09:39:00 · 460 阅读 · 0 评论 -
Provider.java
package yaopin;import javax.swing.JPanel;import java.awt.Component;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JOptionPan原创 2009-11-28 09:36:00 · 496 阅读 · 0 评论 -
MedicineTypeDTO.java
package model;public class MedicineTypeDTO {private String typeCode;private String typeName;public String getTypeCode() { return typeCode;}public void setTypeCode(String typeCode) { this.typeCode原创 2009-11-28 09:38:00 · 299 阅读 · 0 评论 -
药库.sql
use mastergodrop database Medicinecreate database Medicinegouse Medicinego--第一个模块(基本信息管理)create table Provider--供应商(ProviderID varchar(10) primary key, --供应商编号ProviderName nvarchar(50)原创 2009-11-28 09:41:00 · 1236 阅读 · 0 评论