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

xmlתJTreeµÄ¼òµ¥JavaÎÊÌâ - Java / Java EE

ÏÖÓÐÈçÏÂÒ»¸öxmlÎĵµ£¨¿ÉÒÔÊÇxml¸ñʽµÄ×Ö·û´®£©£º
<Department id='-1'>
<Department id='1' pid='-1' name='D'>
<Department id='4' pid='1' name='A'>
<Department id='6' pid='4' name='C'>
</Department>
</Department>
</Department>
<Department id='2' pid='-1' name='E'>
<Department id='5' pid='2' name='B'>
<Department id='7' pid='5' name='G'>
</Department>
</Department>
</Department>
<Department id='3' pid='-1' name='F'>
</Department>
</Department>
ÈçºÎת»»³ÉJTree£¬ÆäÖÐJTreeÀïÍ·Ö»ÒªÓÐnameÕâ¸öÊôÐԾͿÉÒÔÁË£¡
×Ô¼º¶¥¸ö~


°ÑÊ÷¸ùºÍ¸ù½Úµã´«Èë¼´¿É£¡

ÒýÓÃ
private DefaultMutableTreeNode buildTree(
DefaultMutableTreeNode dmtn, Element element) {
if(element.nodeCount() != 0) {
List<Element> elementList = element.elements();
for(int i = 0; i < elementL¡­¡­
·Ç³£¸Ðл£¡


Ïà¹ØÎÊ´ð£º

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

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

java socket email ÎÊÌâ - Java / Java SE

ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:

package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......

FCKÉÏ´«Îļþµ½linux·þÎñÆ÷ÎÊÌâ - Java / Java EE

ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һϡ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£

ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......

¡¾ÕÐÆ¸¡¿javaÈí¼þ¿ª·¢¹¤³Ìʦ - °¤ÌßÖ°ÑÄ / ²ÅÈëÖ°³¡

ÒªÇó£º
  1¡¢¾ßÓÐ2ÄêÒÔÉϵÄjava¿ª·¢¹¤×÷¾­Ñ飬¾«Í¨java£»
  2¡¢ÊìϤEclipse¿ª·¢¹¤¾ß£¬ÊìϤWEB¿ª·¢£¬¾ßÓÐÁ½ÄêÒÔÉÏJava¿ª·¢¾­Ñ飬կÎÕÃæÏò¶ÔÏóµÄÈí¼þÉè¼Æ·½·¨£¬
  ÓÐSpring¡¢HibernateÒÔ¼° ......

java´òÓ¡ - Java / Java EE

ÓÐË­ÓÃjava×ö¹ý´òÓ¡·¢Æ±µÄ³ÌÐò£¬¸Ð¾õÕâ·½Ãæ²»ÊǺܺÿØÖÆ£¬Ï£Íû¸øµã½¨Ò飬×îºÃÄܸø³ö´úÂë
¼òµ¥µã¾Íµ÷ÓÃwindow.print()
ÄãÒ²¿ÉÒÔ°ÑÏÂÃæ´úÂë·Åµ½ÄãJSPÖÐ:
<html>
 <head>
  <title> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ