摘要: 表结构:create table view(id int unsigned NOT NULL AUTO_INCREMENT, catid int,title varchar(256),picture MEDIUMBLOB, content TEXT,PRIMARY KEY (id));java类操作:import java.awt.Image; import java.io.*; import java.nio.ByteBuffer; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQ 阅读全文
posted @ 2012-06-16 14:41 zhwj184 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class ScaleIcon implements Icon { private BufferedImage i = null; private Icon icon = null; public ScaleIcon(Icon... 阅读全文
posted @ 2012-06-16 14:37 zhwj184 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: import java.awt.Dimension; import java.awt.Image; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.BufferedInputStream; import java.io.FileInputStream; import java 阅读全文
posted @ 2012-06-16 14:24 zhwj184 阅读(332) 评论(0) 推荐(0) 编辑