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 ......
java swing ³ÌÐòÈçºÎ´ò°ü³Éjar£¬È»ºó¿ÉÒÔͨ¹ýÅú´¦ÀíÎļþbatÖ±½ÓÔËÐУ¬ÓÐûÓÐʲô¹¤¾ßÖ±½Ó¿ÉÒÔÍê³ÉÕâÁ½¸ö¹¤×÷£¿
ÓÃjar´ò°ü£¬°ÑÔËÐÐÐèÒªµÄjar¿½±´µ½Ò»¸öĿ¼£¬Åú´¦ÀíÓà start javaw -cp .;ÆäËû°ü·¾¶ ÔËÐÐ
ÓÃzip ......
insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
ÇëÎÊ´ó¸çÃÇÕâ¸ösql Óï¾äÓ¦¸ÃÓÃJavaÀïµÄÄǸöÊý¾Ý¿â²Ù×÷·½·¨£¿ ......
¾ÍÊǼòµ¥µÄ´«ÖµºÍȡֵ
ÇëÎÊÂ¥Ö÷ÏëÎÊʲô£¿
jspÒ³Ãæ²ÉÓÃ±íµ¥»òÕßjavabean´«Öµ¶¼¿ÉÒÔ£¬Ê¹ÓÃrequest.getParameter()»ñµÃʹÓÃ±íµ¥´«¹ýÀ´µÄÖµ¡£
ÎÊÎÊÌ⣬ÏȰÑÎÊÌâ˵Çå³þµã£¡£¡ ÎÊÌâ̫ģºý£¡£¡
ÎÊÎÊÌ⣬ÏȰÑÎ ......