Java ±íÍ·ºÍ±íµÄÖ÷ÌåÁÐÊý²»¶ÔÓ¦ - Java / Java SE
ÉÏͼÊÇÊ×´ÎÔËÐУ¬Õâ¸öʱºòûÎÊÌ⣬µ«Êǵ±µã»÷ÁËÇл»±í¸ñ°´Å¥(×Ô¼º¶¨ÒåµÄ)£¬ÔÙÇл»»ØÀ´Ê±£¬¾Í³öÏÖÁËÏÂͼµÄÇé¿ö£º
ͼ¹ÒÁË
һͼ£º
¶þͼ£º
¿´µ½ÁË£¬¿´¶þÂ¥¡£ ÎÒµÄTableÊÇ·ÅÔÚBoxÀïµÄ £¬ ÓйØϵÂ𠣿
¶¥Ò»¸ö £¬µÈ´ý¸ßÊÖ½â´ð£¬Ñ§Ï°ÖÐ
ÉÏ´úÂë°É¡£
PS. Çл»µÄ»°£¬ÎÒ¾õµÃʹÓÃCardLayout·½±ãһЩ¡£
»Ø¸´ 5Â¥ ´úÂëÓÐЩ³¤ Ö÷Òª¿´Ò»Ï Ê¼þ´¦Àí·½ÃæµÄ ´úÂë
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.border.*;
public class InsertRecord extends JDialog implements ActionListener{ //¸ºÔð²åÈë¼Ç¼µÄÀà
static JPanel p1,p2,p3;
static Box baseBox,baseBox1,baseBox2;
JLabel x,y,z;
Object[] name={"ѧºÅ","ÐÕÃû","ÐÔ±ð","ÄêÁä"};
Object[] Name={"¿Î³ÌºÅ","¿Î³ÌÃû","ѧ·Ö"};
Object[] NAme={"ѧºÅ","¿Î³ÌÃû","³É¼¨"};
Object[][] a=new Object[1][4];
Object[][] b=new Object[1][3];
Object[][] c=new Object[1][3];
JTable table1,table2,table3;
JButton r,m,t,button1,button2,button3;
JPanel p;
Connection con;
Statement sql;
ResultSet rs;
Ïà¹ØÎÊ´ð£º
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......
ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......
Èç¹ûÖ±½ÓÒýÓýøÈ¥
¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö
лл¸÷λÁË£¬¿´À´Î ......
È磺 @superwaring("unchecked");
Õâ¸öÀïÃ涼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£
¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......
ÔõôÑù½«id´«¹ýÈ¥°¡£¿£¿£¿ÊǼòµ¥µÄ´«¡£¡£¡£ÔÚµØÖ·À¸ÖÐдidºÅ
LZ ºÃÓÄĬ£¡²»ÖªµÀÄãµÄÒâ˼£¿
ÊÇÏë°ÑID ´«µ½ACTION ? ͨ¹ýURl id=?
²»¹»Ïêϸ ±ðÈ˲»ÖªµÀÔõÑù°ïÄã
../XXXXX.do?id=XXXX&id2=XXXXX
......
id name datetime
1 a 2010-05-13 10:15:00
2 b 2010-05-14 09:10:00
3 d 2010-05-14 10:10:00
ÈçºÎ½«¾àÀëÄ¿Ç°×î½üµÄÄǸö¼Ç¼µÄname ¸üÐÂΪ¡°x¡±ÄØ
лл¿© °¡ ºÇºÇ
update table_n ......