JavaʵÀý´úÂë:ͶƱ¼ÆÊýÆ÷
import java.awt.*;
import java.awt.event.*;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.*;
public class ElectToo extends JFrame implements ActionListener,ItemListener
{
static ElectToo frm=new ElectToo();
static Save sa=new Save();
static JLabel lab1=new JLabel("×ÜÈËÊý:");
static JLabel lab2=new JLabel("×î¸ßƱÊýÑ¡ÊÖ:");
static JLabel lab3=new JLabel("×î¸ßƱÊý:");
static JDialog dg=new JDialog();
static JLabel lab4=new JLabel();
static JLabel lab5=new JLabel();
static JLabel lab6=new JLabel();
static JLabel lab7=new JLabel();
static JLabel lab8=new JLabel();
static JLabel lab9=new JLabel();
static JLabel lab10=new JLabel();
static JLabel lab11=new JLabel();
static JLabel lab12=new JLabel();
static JLabel lab13=new JLabel();
static JButton btn1=new JButton("Ìá½»");
static JButton btn2=new JButton("Ë¢ÐÂ");
static JButton btn3=new JButton("±£´æ");
static JButton btn4=new JButton("È¡Ïû");
static TextField tf1=new TextField("",5);
static TextField tf2=new TextField("",15);
static TextField tf3=new TextField("",5);
static JCheckBox jb1=new JCheckBox("³ÂÃ÷ï");
static JCheckBox jb2=new JCheckBox("ÕÅÈý");
static JCheckBox jb3=new JCheckBox("ÀîËÄ");
static JCheckBox jb4=new JCheckBox("ÍõÎå");
static JCheckBox jb5=new JCheckBox("ÕÅÈý·á");
static JCheckBox jb6=new JCheckBox("ÇÇ·å");
static JCheckBox jb7=new JCheckBox("ÏôʮһÀÉ");
static JCheckBox jb8=new JCheckBox("ÍõÀϼª");
static JCheckBox jb9=new JCheckBox("·ÑµÂÄÏ");
static JCheckBox jb10=new JCheckBox("ÁÖÎÞµÐ");
static JPanel pan1=new JPanel();
static JPanel pan2=new JPanel();
static JPanel pan3=new JPanel();
static JPanel pan4=new JPanel();
static int count=0;
static int count1=
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
Õý³£±àÒëÔËÐÐjavaÎļþ¿Ï¶¨Òª±¾µØÏÂÔØjdkºÍjre»òÕßʹÓü¯³ÉIDE(Eclipse,NetBeans)£¬Õâ¸öÍøÕ¾¸É´à½«±àÒ빤×÷·Åµ½·þÎñÆ÷ÉÏÈ¥£¬ÈÃÄã¿ÉÒÔÔÚÏß±àÒ룬
µÃ³ö´íÎóÐÅÏ¢£¬¸üÄѵõÄÊÇ»¹¿ÉÔËÐУ¬µ±È»²»ÄÜ×öͼÐκÍÎļþ²Ù×÷£¬ÒòΪËüÔËÐÐÔÚ·þÎñÆ÷¶Ë¡£
꿅᣼http://youjavait.com/
Ò³ÃæÉÏ·ÖΪÉÏÏÂÁ½¸öÃæ°å£¬ÓеãÀàËÆEclipse¡£±àÒëÊ ......
ÎÊÌâÒ»£ºÈç±£¼ÓÔØJDBCÇý¶¯³ÌÐò£º
¡¡¡¡Õý³£ÎÒÃǼÓÔØÇý¶¯³ÌÐòÓÐÈý¸ö;¾¶£º
¡¡¡¡1£©Class.forName(String)ÕâÏëµ±ÓÚclassLoaderÒ»¸öStringÖ¸¶¨µÄÀ࣬ÔÚ×°ÔØʱ°Ñ¸ÃÇý¶¯³ÌÐòµÄ¾²Ì¬ÄÚÈݶ¼³õʼ»¯£¬ÆäʵÕâʱÇý¶¯³ÌÐòÀàµ÷ÓÃÁËDriverManager.registerDriver(driver)·½·¨
¡¡¡¡2£©Ê¹ÓÃϵͳÊôÐÔ£ºSystem.getProperty().load(new Fil ......
ÔÚJAVAÖеÄSQL Óï¾äµÄ±àд·½Ã棬ûÓÐʹÓÃORACLE °ó¶¨±äÁ¿£¬ºÜ´ó³Ì¶ÈÉϽµµÍÁËÊý¾Ý¿âµÄÐÔÄÜ£¬±íÏÖÔÚÁ½¸ö·½Ã棺
1¡¢SQLÓï¾äÓ²·ÖÎö(Hard Parse)Ì«¶à£¬ÑÏÖØÏûºÄCPU×ÊÔ´£¬ÑÓ³¤ÁËSQLÓï¾ä×ܵÄÖ´ÐÐʱ¼ä
SQLÓï¾äµÄÖ´Ðйý³Ì·Ö¼¸¸ö²½Ö裺Óï·¨¼ì²é¡¢·ÖÎö¡¢Ö´ÐС¢·µ»Ø½á¹û¡£ÆäÖзÖÎöÓÖ·ÖΪӲ·ÖÎö(Hard Parse)ºÍÈí·ÖÎö(Soft Pars ......
±¾×÷Æ·²ÉÓÃ֪ʶ¹²ÏíÊðÃû-·ÇÉÌÒµÐÔʹÓÃ-Ïàͬ·½Ê½¹²Ïí 2.5 Öйú´ó½Ðí¿ÉÐÒé½øÐÐÐí¿É¡£
Java StringÊÇJava APIÖÐ×î³£ÓõÄÀ࣬±¾Îĺʹó¼Ò̸̸StringÀàµÄÄÚ²¿ÔÀí£¬Í¬Ê±ÃèÊöISO-8859-1×Ö·û¼¯ÔÚ×Ö·û´®´¦ÀíÖеĶÀÌØÓô¦¡£
Java×Ö·û´®µÄÄÚ²¿±àÂë
StringÀàÄÚ²¿¹ÜÀí×ÅÒ»¸öcharÀàÐ͵ÄÊý×飬Java APIÊÇÕâÑùÃèÊöchar»ù±¾ÀàÐ ......