摘要:
package com.hooypay.tool;import java.io.IOException;import java.util.regex.Matcher;import java.util.regex.Pattern;public class Check { // 判断电话 public static boolean isTelephone(String phonenumber) { String phone = "0\\d{2,3}-\\d{7,8}"; Pattern p = Pattern.compile(phone); M... 阅读全文
posted @ 2013-01-24 16:08
小木v587
阅读(10841)
评论(0)
推荐(0)
摘要:
package com.hooypay.tool;import java.awt.BasicStroke;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Component;import java.awt.Cursor;import java.awt.Dimension;import java.awt.Font;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.GridLayout;import java.awt.Point 阅读全文
posted @ 2013-01-24 16:06
小木v587
阅读(569)
评论(0)
推荐(0)
摘要:
package com.hooypay.test;import java.awt.Dimension;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.IOException;import java.util.HashMap;import java.util.Map;import java.util 阅读全文
posted @ 2013-01-24 16:05
小木v587
阅读(1188)
评论(0)
推荐(0)
摘要:
1.package com.hooypay.test;import javax.swing.*;import javax.swing.table.DefaultTableModel;import java.awt.*;import java.util.Vector;/** * 测试JTable添加数据,删除数据频繁操作,JTable出现数组越界的处理 * 在工作中如果遇到频繁的操作Jtable的数据,特别是速率很快的情况下,经常会遇到 * Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoun 阅读全文
posted @ 2013-01-24 16:04
小木v587
阅读(2146)
评论(0)
推荐(1)
摘要:
package com.hooypay.view;import java.awt.Image;import java.awt.Toolkit;import javax.swing.ImageIcon;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JRootPane;public class LoadingFrame2 extends JFrame { private JLabel statusLabel = new JLabel(""); public LoadingFrame2 阅读全文
posted @ 2013-01-24 16:02
小木v587
阅读(2250)
评论(0)
推荐(0)
摘要:
一,写一个DB连接工具类package com.hooypay.tool;import java.io.FileNotFoundException;import java.io.IOException;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Properties 阅读全文
posted @ 2013-01-24 15:49
小木v587
阅读(395)
评论(0)
推荐(0)

浙公网安备 33010602011771号