JAVA ME ÊÖ»ú³ÌÐòÈëÃż¶Ô´Âë
Ò»¸öÓÉ Carol Hamer дµÄ±È½ÏÓдú±íÐÔµÄÔ´Â룬×÷ÕßÈ«Á¦ÍƼö£¬ÓÈÆäÊǶÔÓÚûÓÐ J2ME ¿ª·¢¾ÑéµÄÅóÓÑ¡£×Ô¼º¶¯ÊÖÇóöÒÔÏÂÌù³öµÄ Hello.java ºÍ HelloCanvas.java Ô´Â룬²¢ÔËÐУ¬ÓÃÐÄÌå»áһϡ£ÏàÐÅÄãÀí½âÁË´ËÔ´ÂëÖ®ºó£¬¼´¿É²½Èë J2ME ¿ª·¢¡£
×¢ÊͶ¼ÔÚÔ´ÂëÀÔËÐл·¾³×Ô¼ºÅ䣬×Ô¼º¶¯ÊÖ¿´ÔËÐÐЧ¹û£¬Àí½âÖ®ºó£¬È»ºó¶¯ÊÖÐÞ¸ÄÒ»ÏÂÔ´Â룬J2ME ¿ª·¢£¬Äã¿ÉÒԵģ¡
Hello.java Ô´Â룺
package net.frog_parrot.hello;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
/**
* This is the main class of the hello world demo
*
* @author Carol Hamer
*
*/
public class Hello extends MIDlet implements CommandListener {
/**
* The canvas is the region of the screen that has bean alloted to the game
*/
HelloCanvas myCanvas;
/**
* The Command objects apears as buttons.
*/
private Command exitCommand = new Command("Exit",Command.EXIT,99);
/**
* The Command objects apears as buttons.
*/
private Command newCommand = new Command("Toggle Msg",Command.SCREEN,1);
/**
* initialize the canvas and the commands
*/
public Hello() {
myCanvas = new HelloCanvas(Display.getDisplay(this));
myCanvas.addCommand(exitCommand);
myCanvas.addCommand(newCommand);
myCanvas.setCommandListener(this);
}
//--------------------------------
// implementation of MIDlet
/**
* Start the application
*/
protected void startApp() throws MIDletStateChangeException {
myCanvas.start();
}
/**
* This method is called to notify the MIDlet to enter a paused state.
* The MIDlet should use this opportunity to release shared resources.
*/
protected void pauseApp() {
}
/**
* If the MIDlet was using resources,it should release them in this method
*/
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
}
//-----------------------
// implementation of CommandListener.
/**
* Respond to a command issued on the Canvas
* (either reset or exit)
*/
public void commandAction(Co
Ïà¹ØÎĵµ£º
±¾³ÌÐò¿ÉÒÔʵÏÖѧÉúÐÅϢ¼ÈëºÍ²é¿´¡£
ÒªÇó£º
£¨1£©ÀûÓÃSwingÉè¼ÆÍ¼ÐÎÓû§½çÃæ£¬½çÃæ°üÀ¨£ºÑ§ÉúÐÅϢ¼ÈëºÍÏÔʾѧÉúÐÅÏ¢£»
£¨2£©Ìí¼ÓѧÉúÐÅÏ¢£ºÊµÏÖÍù¼¯ºÏÀïÌí¼ÓѧÉúÐÅÏ¢£¨Ñ§ºÅ,ÐÕÃû,ÐԱ𣬳ɼ¨£©
×¢Ò⣺Óû§ÊäÈëÐÅÏ¢µÄÑéÖ¤¡£
£¨3£©ÐÞ¸ÄѧÉúÐÅÏ¢£ºÓÉÓû§ÊäÈëѧÉúµÄѧºÅ£¬³ÌÐòÑéÖ¤ÊÇ·ñÓдËѧÉú ......
ÔÎÄ£ºSome Java Concurrency Tips
×÷ÕߣºCarol McDonald
³ö´¦£º
http://weblogs.java.net/blog/caroljmcdonald/archive/2009/09/17/some-java-concurrency-tips
ÕâÊÇÀ´×ÔJoshua Bloch¡¢Brian GoetzºÍÆäËûÈ˵ÄÒ»¸ö¹ØÓÚһЩ²¢·¢¼¼ÇɵĻã×Ü¡£
Ê×ÏÈÑ¡Ôñ²»¿É±äµÄ¶ÔÏó/Êý¾Ý
²»¿É±ä¶ÔÏó£¨immutable ......
¡¡Java Card Ó¦ÓóÌÐòµÄÔªËØ
¡¡¡¡Çë¼Çס£¬Java Card Ó¦ÓóÌÐò²¢²»ÊǶÀÁ¢µÄ£¬¶øÊǶ˵½¶ËÓ¦ÓóÌÐòµÄÒ»²¿·Ö:
ͼ 1. Java Card Ó¦ÓóÌÐòµÄµäÐÍ×é¼þ
¡¡¡¡Java Card Ó¦ÓóÌÐòͨ³£ÓÉÒÔϲ¿·Ö×é³É£º
¡¡¡¡Ìṩºǫ́·þÎñ£¨ÀýÈç±£´æÔÚÊý¾Ý¿âÖеݲȫ»òÕßµç×ÓÖ§¸¶ÐÅÏ¢£©·ÃÎ浀 ºǫ́ӦÓóÌÐò¡£ÈçºÎ¿ª·¢ºǫ́ӦÓóÌÐò³¬³öÁ˱¾Îĵ ......
1. JavaÓïÑÔ»ù´¡
̸µ½JavaÓïÑÔ»ù´¡Ñ§Ï°µÄÊé¼®£¬´ó¼Ò¿Ï¶¨»áÍÆ¼öBruce EckelµÄ¡¶Thinking in Java¡·¡£ËüÊÇÒ»±¾Ð´µÄÏ൱Éî¿ÌµÄ¼¼ÊõÊé¼®£¬JavaÓïÑÔ»ù´¡²¿·Ö»ù±¾Ã»ÓÐÆäËüÈκÎÒ»±¾Êé¿ÉÒÔ³¬Ô½Ëü¡£¸ÃÊéµÄ×÷ÕßBruce EckelÔÚÍøÂçÉϱ»³ÆÎªÌì²ÅµÄͶ»úÕߣ¬×÷Õߵġ¶Thinking in C++¡·ÔÚ1995ÄêÔø»ñSoftwareDevelopment Jolt Award×î¼ÑÊ ......