- 浏览: 39623 次
- 性别:
- 来自: 长沙
最新评论
-
bobbell:
GOOD.非常好的博客,赞一个。我是一个java barcod ...
iText创建PDF文件 -
fnye:
[b][/b][i][/i][u][/u]引用[*][img] ...
ibatis调用mysql存储过程示例 -
juedui0769:
第一段代码运行正常,仅提示window.show方法已经过时。 ...
java录音程序
文章列表
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>可编辑的表格</title>
<meta http-equiv="pragma" content="no-cache">
&l ...
- 2009-05-24 13:08
- 浏览 5207
- 评论(0)
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import org.apache.poi.ss.usermodel.DateUtil;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache ...
//左、右、上、下页边距
Document doc =new Document(PageSize.A4, 50, 50, 10, 10);
//A4横向
// Document doc = new Document(PageSize.A4.rotate());
PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("d:/test.pdf"));
//添加footer需要在document.open之前
//页眉
HeaderFooter ...
配置文件: sqlMapConfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig> ...
利用空余时间写的一个简单例子,数据库是oracle10g.
配置文件:
OracleSqlMapConfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig
PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-con ...
- 2009-08-01 19:48
- 浏览 6842
- 评论(0)
js文件
Ext.onReady(function() {
// 对于提交中出现的乱码,在Ext中可以修改Request Header中Content-Type的设置
Ext.lib.Ajax.defaultPostHeader += ";charset=utf-8";
Ext.QuickTips.init();
Ext.apply(Ext.QuickTips.getQuickTip(), {
dismissDelay : 0
});
Ext.form. ...
- 2009-07-14 23:34
- 浏览 4092
- 评论(0)
public class ShapedWindow extends JFrame {
public ShapedWindow() {
super("不规则窗体");
this.setLayout(new FlowLayout());
JButton button = new JButton("退出按钮");
this.add(button);
this.add(new JCheckBox("复选按钮"));
this.add(new JRadioButton("单选按钮")); ...
- 2009-07-09 23:24
- 浏览 1375
- 评论(0)
class FileSeek {
private static File[] arr = new File[1024 * 512];
static int p = -1;
public boolean isEmpty() {// 判断是否为空
if (p > -1)
return false;
else
return true;
}
public void push(File obj) {// 压栈
p++;
arr[p] = obj;
}
public File pop() {// 出栈
if ...
- 2009-07-08 22:19
- 浏览 817
- 评论(0)
public class TreeSort {
public static void main(String[] args) {
CollatorComparator comparator = new CollatorComparator();
TreeMap<String, Object> map = new TreeMap<String, Object>(comparator);
for (int i = 0; i < 10; i++) {
String s = "" + (int) (Math.ra ...
- 2009-05-26 15:14
- 浏览 1327
- 评论(0)
本人网上收集的两个java录音程序,文章出处不记得了.程序1:
import javax.sound.sampled.*;
import javax.swing.JFrame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.Toolkit;
import javax.swing.JPanel;
import java.awt.event.ActionListener;
import javax.sound.sampled.AudioInput ...
- 2009-05-26 10:38
- 浏览 6084
- 评论(1)