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

JAVA GUIѧϰµÄСÎÊÌâ ÇóÖú¸÷λ´ó´ó

ÕâÊÇÎÒÔÚÌýÂíÊ¿±øµÄÊÓÆÁÊÇ×öµÄÁ·Ï°  ¿É±àÒëµÄʱºòÀÏÊÇÓÐÎÊÌâ ÕÒ²»³öÀ´

ÔÚÏߵȰïÖú
import java.awt.*;
import java.awt.event.*;

public class TFMath {
public static void main(String args[]) {
new TFFrame().launchFrame();
}
}

class TFFrame extends Frame {
public void launchFrame() {
TextField num1 = new TextField(10);
TextField num2 = new TextField(10);
TextField num3 = new TextField(15);
Label lbplus = new Label("+");
Button BEqual = new Button("=");
BEqual.addActionListener(new MyMonitor(this));
setLayout(new FlowLayout());
add(num1);
add(lbplus);
add(num2);
add(BEqual);
add(num3);
pack();
setVisible(true);
}
}

class MyMonitor implements ActionListener {
TFFrame tf = null;
TextField num1,num2,num3;
public MyMonitor(TFFrame tf) {
this.tf = tf;
}

public void actionPerformed(ActionEvent e) {
int n1 = Integer.parseInt(tf.num1.getText());
int n2 = Integer.parseInt(tf.num2.getText());
tf.num3.setText("" +(n1+n2));
}
}

TextField Òª×÷ΪÀàµÄ±äÁ¿£¬²»ÄÜ×÷Ϊ·½·¨µÄ±äÁ¿¡£¡£¡£·ñÔònewµÄʱºòÈ¡²»µ½

лл Á˽âÁË
Ö»ÄÜÓÃÓÚ³ÉÔ±±äÁ¿²ÅÄÜ·ÃÎÊÊǰÉ


ÒýÓÃ
л


Ïà¹ØÎÊ´ð£º

asp µ÷ÓÃjavaдµÄwebservice - Web ¿ª·¢ / ASP

ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
  <part name="bstrPnrNO" type="s:string" /> 
  <part name ......

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

JSP¶ÁÈëÊý¾Ý¿â - Java / Java EE

ÎÒÊǸöÐÂÊÖ£¬×öÒ»¸öJSPÍøÒ³£¬ÎÒÒª¶Á³öÊý¾Ý¿âÕý³££¬µ«ÊÇÎÒÒªÐ޸ĵÄʱºò£¬Ò²¾ÍÊǶÁÈëµÄʱºò³öÏÖÂÒÂ룬Çë¸ßÊÖ¸æËßÎÒÔõô½â¾ö£¬ÏÈллÁË¡£
request.setCharacterEncoding("UTF-8");

°Ñ±àÂëͳһ

/**
......

linux²»ÄÜ·ÃÎÊaccess - Java / Java EE

rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬Ë­ÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿

AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿

Java code:

static String DBDRIVER = "sun.jd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ