Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA+Swing +sql ·ÖÒ³´úÂë

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.AbstractTableModel;
public class PageTest extends JFrame implements MouseListener,ActionListener{
 public final  String[] columnHeaders = {"ID(±àºÅ)","Nmae(ÐÕÃû)","Sex(ÐÔ±ð)" };
 JTable ab;
 JLabel ab1,ab2,ab3,ab4;
 JTextField test1,test2,test3,test01,test02,test03,test04;
 JButton bu,bu1,bu01,bu02,bu03,bu04;
 JScrollPane jsp;
 public String[][] str = null;
 ShuZhu sz = new ShuZhu();
 int y =0;
 public PageTest(){
  sz.sqlCont();
  setTitle("------------------");
  setBounds(100,100,500,400);
  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setLayout(null);
  bu  = new JButton("ÏÂÒ»Ò³");
  bu.setBounds(415,10,75,30);
  bu.addActionListener(this);
  bu1  = new JButton("ÉÏÒ»Ò³");
  bu1.setBounds(415,50,75,30);
  bu1.addActionListener(this);
  ShuZhu sz = new ShuZhu();
  str = sz.selectSql(3,y);
  testChn tc = new testChn();
  
  ab = new JTable(tc);
  jsp = new JScrollPane(ab);
  jsp.setBounds(10,10,400, 80);
  ab.addMouseListener(this);
  test1 = new JTextField(20);
  test1.setBounds(20,100,100,35);
  test2 = new JTextField(20);
  test2.setBounds(170,100,100,35);
  test3 = new JTextField(20);
 &nbs


Ïà¹ØÎĵµ£º

Java ¶ÏµãÐø´«

±¾ÎÄ´Óhttp://www.blogjava.net/breezedancer/archive/2007/07/19/131264.html×ªÔØ
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
//¶ÏµãÐø´ ......

javaÖзÃÎÊmemcache

ÓÃspyºÍmemcached for  javaÁ½ÖÖ·½Ê½¶Ômemcache½øÐвÙ×÷
Ò»¡¢spy
package com.test.memcache;
import java.net.InetSocketAddress;
import java.util.concurrent.Future;
import net.spy.memcached.MemcachedClient;
/**
 * ±¾ÀàÓõİüÊÇmemcached-2.4.1.jar
 *  ÏÂÔØµØÖ·£º http://code.googl ......

LinuxÏÂjava»·¾³±äÁ¿ÉèÖ÷½·¨

תÌù£º
ÏÖÔÚÓÃlinuxµÄÅóÓÑÔ½À´Ô½¶àÁË£¬Ç°¼¸Ìì¾ÍÓÐÁ½¸öÅóÓÑÎÊÎÒlinuxÏÂÔõôÅäÖÃjava»·¾³£¬ÎÒÏ뻹ÓкܶàÅóÓÑÏëÁ˽âѧϰÕâ·½ÃæµÄ¶«Î÷£¬¾Íдһ¸öÍêȫһµãµÄlinux java»·¾³ÅäÖðɣ¬Ï£Íû¶Ô´ó¼ÒÓаïÖú¡£
Ò». ÏÂÔØjdk5.0 for linux
¡¡¡¡µ½sunµÄÖ÷Ò³ http://java.sun.com/j2se/1.5.0/download.jsp ÏÂÔØjdk°²×°Îļþjdk-1_5_0_05-li ......

SQL²éѯÊý¾Ý¿âÖÐÿÕűíµÄ¼Ç¼Êý

±¾ÎÄÀ´×Ô£ºhttp://hi.baidu.com/darkroot/blog/item/7b74be2cf06d76e78b139903.html
declare   @tbName     nvarchar(500)
declare   @ct      int  
declare   @csql   nvarchar(500)  
declare &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ