JavaFXÖÐʵÀý»¯JavaÀà¶ÔÏó
Èç¹ûJavaÀà¶ÔÏóÓµÓв»´ø²ÎÊýµÄ¹¹Ô캯Êý£¬ÄÇô¿ÉÒÔÔÚJavaFX´úÂëÀïÖ±½ÓʵÀý»¯£º
var var1 = ArrayList{};
Èç¹ûÄ¿±êJavaÀàÖ»Óдø²ÎÊýµÄ¹¹Ô캯Êý¾ÍÓÐЩÂé·³£¬ÐèÒª·Ö2²½½øÐУ¬Ê×ÏÈн¨Ò»¸öJava¹¤¾ßÀàJavaUtils.java£¬ÔÚÕâ¸öÀàÀォÄãÄ¿±êÀàʵÀý»¯Íê³Éºóͨ¹ý¸³ÖµÓï¾ä½«Æä¸³Öµ¸øJavaFX±äÁ¿£º
1¡¢±àдJavaUtils.java
import java.net.MalformedURLException;
import java.net.URL;
/**
*
* @author Leon Chen
*/
public class JavaUtils {
public static URL getURL(String spec) throws MalformedURLException{
return new URL(spec);
}
}
2¡¢ÔÚJavaFX´úÂëÀïʹÓÃJavaUtilsÉú³ÉURLÀàʵÀý
var url = JavaUtils.getURL(“http://www.jqueen.org”);
ĿǰJavaFX°æ±¾Îª1.2£¬ÔÚJavaºÍJavaFX´úÂëµÄÏ໥µ÷ÓÃÉÏ»¹Óкܶ಻·½±ãµÄµØ·½£¬Ï£ÍûÒÔºóµÄ°æ±¾»áÓиĽø¡£
Ïà¹ØÎĵµ£º
¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ1ÕÂ
www.wesiedu.com 2009-5-5 ÔÚÏßÄ£Ä⿼³¡
¶þ¡¢¿Î³ÌÄÚÈÝÓ뿼ºËÄ¿±ê
µÚ1Õ JavaÓïÑÔ»ù´¡
(Ò»)¿Î³ÌÄÚÈÝ
1.1 JavaÓïÑÔµÄÌØµã
1.2 JavaÓ¦ÓóÌÐòºÍСӦÓóÌÐò
1.3 Java³ÌÐòµÄ¿ª·¢¹ý³Ì
1.4±êʶ·ûºÍ¹Ø¼ü×Ö
l.5»ù±¾Êý¾ÝÀàÐÍ
1.5.1 Âß¼ÀàÐÍ
1 ......
µÚ8Õ ¶àÏß³Ì
(Ò»)¿Î³ÌÄÚÈÝ
8.1Ï̵߳Ļù±¾¸ÅÄî
8.1.1Ï̵߳ÄÉúÃüÖÜÆÚ
8.1.2Ï̵߳÷¶ÈÓëÓÅÏȼ¶
8.2 ThreadÀàºÍRunnable½Ó13
8.2.1 ThreadÀà
8.2.2 Runnable½Ó¿Ú
8.3Ï̻߳¥³âºÍͬ²½
8.3.1Ï̻߳¥³â
8.3.2Ïß³Ìͬ²½
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉܶàÏ̵߳ĸÅÄîºÍ±àд¶àÏ̳߳ÌÐòµÄ·½·¨£¬ÊµÏÖÏß³ÌÖ®¼äÏ໥ͨÐźÍͬ²½µÄ¼¼ ......
µÚ9Õ ÊäÈëºÍÊä³öÁ÷
(Ò»)¿Î³ÌÄÚÈÝ
9.1×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
9.1.1 File¶ÔÏó
9.1.2Á÷¶ÔÏó
9.2»º³åʽÊäÈëÊä³ö
9.2.1»º³åʽÊäÈë
9.2.2»º³åʽÊä³ö
9.3Ëæ»ú·ÃÎÊ
9.4Îļþ¶Ô»°¿ò
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉÜJava³ÌÐòÊý¾ÝÎļþµÄÊäÈëÊä³ö¼¼Êõ¡£ÒªÇóÄܱàд¼òµ¥µÄJavaÎļþ´¦Àí³ÌÐò¡£
(Èý)¿¼ºË֪ʶµãÓ뿼ºËÒªÇó
1.´´½¨File¶ÔÏó£ ......