Java ME Mapdigit UI Toolkit ¼ò½é
ÔÚSUNÍƳö LWUIT¿ª·¢°ü֮ǰ£¬ÔÚJava MEƽ̨ÉÏ¿ª·¢Óû§½çÃæ²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊ£¬ÓÈÆäÊÇÏë×ö³öºÜÑ£µÄ½çÃ棬¸üÊÇÄÑÉϼÓÄÑ£¬ÕâÊÇÒòΪÓÉMIDP±¾ÉíÌṩµÄÓû§½çÃæÔªËØ£¬°üjavax.microedition.lcdui
ÖÐÌṩµÄ×é¼þ¹¦ÄÜÏà¶Ô¼òµ¥¡£
ʹÓà LWUIT ¿ª·¢°ü£¬¿ª·¢ÈËÔ±²»ÔÙÐèÒª±àдÓëÉ豸ÆÁÄ»´óСÏà¹ØµÄ´úÂ룬Ëü²ÉÓÃÁËÓëSwing ÏàËƵĸÅÄîÌṩÁËLayout ManagerÓÃÓÚÆÁÄ»¿Ø¼þµÄ²¼¾Ö¹ÜÀí¡£Ó¦ÓÃÁËÓëCSSÀàËƵĿÉÌæ»»µÄ Look and Feel ¼°²»Í¬Ö÷Ì⣨Themes£©Ö§³Ö¡£¶¯»¼°½¥±ä£¨Èç´°¿ÚµÄµÈëµ³öµÈ£©£¬´ËÍâLWUIT»¹ÌṩÁ˶àÖÖ³£ÓÿؼþÖ§³Ö£¬ÈçButton£¬ Label£¬ Listbox£¬ Radiobox£¬Tree£¬ GridµÈ¡£
¹ØÓÚLWUIT ÏêÇéÇë²Î¼û http://java.sun.com/javame/technology/lwuit/
Mapdigit Java ME UI toolkit ÊÇ»ùÓÚ Sun µÄ £Ì£×£Õ£É£Ô¿ª·¢°ü£¬²¢½áºÏÁË .Net ƽ̨µÄ¡¡Pattern ºÍPracticsһЩ¸ÅÄȱʡÌṩÁËWindows Mobile Ö÷ÌâÖ§³Ö¡£ËüÖ§³ÖModel-View-Presenter (MVP) , Container Hierarchy, View Navigation pattern¡£
Ëü±È£Ì£×£Õ£É£Ô°üÖ÷Òª¶àÁËÏÂÃ漸¸öÀà
WinForm ÌṩÀàËÆ¡¡Windows Mobile ´°¿Ú¹¦ÄÜ £¨Ìṩ´°¿ÚTitle, ÓÒÉÏ"ok"¼ü£©
MainMenu ,MenuItem, ContextMenu ÌṩÁËÀàËÆ¡¡Windows Mobile µÄ²Ëµ¥¼°ÄÚÈÝÏà¹Ø²Ëµ¥¹¦ÄÜ
Toolbar µ×±ß¹¤¾ßÀ¸
ÔÚ LWUIT Blog µÄ¹ØÓڸóÌÐòµÄ½éÉÜ
ÁíÍâÒ»¸ö°ücom.mapdigit.windows.practices ÌṩÁË¶Ô Pattern & Practics µÄÖ§³Ö
Ö÷ÒªÀàÓС¡View, Presenter ºÍ¡¡WorkItem Àà¡£
ÏÂÎÄ»á½éÉÜ ÕâЩÀà¡£
Ïà¹ØÎĵµ£º
Ò»¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼µÄ¸ß²ã³éÏó²ã½á¹¹ ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ª·¢ÁíÒ»¸öÏà½üµÄÏîĿʱ£¬ÄãÒÔÇ°µÄ³éÏó²ã˵²»¶¨»¹¿ÉÒÔÔÙ´ÎÀûÓà ÄØ£¬Ãæ¶Ô¶ÔÏóµÄÉè¼Æ ......
¹Ø¼ü×Ö: µ×²ãÊý¾Ý Ãû´Ê½âÊÍ£º ²¹Â룺1 ÔÚ¼ÆËã»úϵͳÖУ¬ÊýÖµÒ»ÂÉÓв¹ÂëÀ´±íʾ(´æ´¢). ʹÓò¹Âë,¿ÉÒÔ½«·ûºÅλºÍÆäËûλͳһ´¦Àí;ͬʱ,¼õ·¨Ò²¿É°´¼Ó·¨À´´¦Àí.ÁíÍâ,Á½¸öÓò¹Âë±íʾµÄÊý¾ÝÏà¼Óʱºò,Èç¹û×î¸ßλ(·ûºÅλ)Óнøλ,Ôò½øÎ¥±»ÉáÆú. 2 ²¹ÂëÓëÔÂëµÄת»»¹ý³Ì¼¸ºõÊÇÏàͬµÄ ÊýÖµµÄ²¹Âë±íʾҲ·ÖÁ½ÖÖÇé¿ö£º £¨1£©ÕýÊýµÄ²¹Âë:ÓëÔ ......
»ñµÃmysqlºÍoracleÁ´½ÓµÄÀà
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectDB {
private static final String MYSQL = "jdbc:mysql://";
private static final String ORACLE = "jdbc:oracle:thin:@";
private ConnectD ......
ÔÚÏîÄ¿ÖУ¬ÎÒÃǺܶ඼Óõ½ÁËxmlÎļþ£¬ÎÞÂÛÊDzÎÊýÅäÖû¹ÊÇÓëÆäËüϵͳµÄÊý¾Ý½»»¥¡£
½ñÌì¾ÍÀ´½²Ò»ÏÂJava ÖÐʹÓÃdom4jÀ´²Ù×÷XMLÎļþ¡£
ÎÒÃÇÐèÒªÒýÈëµÄ°ü£º
//Îļþ°ü
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
//¹¤¾ß°ü
import java.util.Ite ......
JavaÓïÑÔµÄ26¸öϸ½Ú[תÔØ]
Java×÷ΪһÃÅÓÅÐãµÄÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ,ÕýÔÚ±»Ô½À´Ô½¶àµÄÈËʹÓᣱ¾ÎÄÊÔͼÁгö×÷ÕßÔÚʵ¼Ê¿ª·¢ÖÐÅöµ½µÄһЩJavaÓïÑÔµÄÈÝÒ×±»È˺öÊÓµÄϸ½Ú,Ï£ÍûÄܸøÕýÔÚѧϰJavaÓïÑÔµÄÈËÓÐËù°ïÖú¡£
1£¬Î»ÒÆÔËËãÔ½½çÔõô´¦Àí
¿¼²ìÏÂÃæµÄ´úÂëÊä³ö½á¹ûÊǶàÉÙ?
int a=5;
......