﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-atskyline-BLOG-随笔分类-J2ME笔记 </title><link>http://www.cnitblog.com/atskyline/category/7410.html</link><description>心里有就有，心里没有就没有。</description><language>zh-cn</language><lastBuildDate>Thu, 29 Sep 2011 14:44:16 GMT</lastBuildDate><pubDate>Thu, 29 Sep 2011 14:44:16 GMT</pubDate><ttl>60</ttl><item><title>J2ME笔记-图片移动和旋转</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/21/46991.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Mon, 21 Jul 2008 14:07:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/21/46991.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46991.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/21/46991.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46991.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46991.html</trackback:ping><description><![CDATA[<p>精华在于按钮事件机制</p> <p>一个是长按一个是按下,另外值得一题的是除了0-9的数字键外都认为是游戏见</p> <p>keyCode需要用getGameAction()转换一下在进行判断</p> <p>&nbsp;</p><pre><span style="color: #0000ff">import</span> java.io.IOException;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Canvas;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Display;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Graphics;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Image;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.game.Sprite;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDlet;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDletStateChangeException;


<span style="color: #0000ff">public</span> <span style="color: #0000ff">class</span> MIDlet1 <span style="color: #0000ff">extends</span> MIDlet
{
	<span style="color: #0000ff">private</span> Display dis;
	<span style="color: #0000ff">private</span> Mycanvas mc =<span style="color: #0000ff">new</span> Mycanvas();



	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> startApp() <span style="color: #0000ff">throws</span> MIDletStateChangeException
	{
		dis=Display.getDisplay(<span style="color: #0000ff">this</span>);
		dis.setCurrent(mc);
	}
	
	<span style="color: #0000ff">class</span> Mycanvas <span style="color: #0000ff">extends</span> Canvas
	{
		<span style="color: #0000ff">private</span> Image img;
		<span style="color: #0000ff">int</span> x,y,dir=Sprite.TRANS_NONE;;
		
		<span style="color: #0000ff">protected</span> Mycanvas()
		{
			x=0;y=0;
			<span style="color: #0000ff">try</span>
			{
				img=Image.createImage("<span style="color: #8b0000">/img.gif</span>");
			} <span style="color: #0000ff">catch</span> (IOException e)
			{
				e.printStackTrace();
			}
		}
		
		<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> paint(Graphics g)
		{
			g.setColor(255, 255, 255);
			g.fillRect(0, 0, <span style="color: #0000ff">this</span>.getWidth(), <span style="color: #0000ff">this</span>.getHeight());
			g.drawRegion(img, 0, 0, img.getWidth(), img.getHeight(), dir, x, y, Graphics.LEFT|Graphics.TOP);
		}
		
		<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> keyRepeated(<span style="color: #0000ff">int</span> keyCode)
		{
			<span style="color: #0000ff">int</span> action;
			action=<span style="color: #0000ff">this</span>.getGameAction(keyCode);
			<span style="color: #0000ff">switch</span>(action)
			{
				<span style="color: #0000ff">case</span> Canvas.UP:   y-=5;<span style="color: #0000ff">break</span>;
				<span style="color: #0000ff">case</span> Canvas.DOWN:   y+=5;<span style="color: #0000ff">break</span>;
				<span style="color: #0000ff">case</span> Canvas.LEFT:   x-=5;<span style="color: #0000ff">break</span>;
				<span style="color: #0000ff">case</span> Canvas.RIGHT:   x+=5;<span style="color: #0000ff">break</span>;
			}
			<span style="color: #0000ff">this</span>.repaint();
		}
		
		<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> keyPressed(<span style="color: #0000ff">int</span> keyCode)
		{
			<span style="color: #0000ff">int</span> action;
			action=<span style="color: #0000ff">this</span>.getGameAction(keyCode);
			<span style="color: #0000ff">if</span>(action==Canvas.FIRE)
			{
				<span style="color: #0000ff">switch</span>(dir)
				{
					<span style="color: #0000ff">case</span> Sprite.TRANS_NONE: dir=Sprite.TRANS_MIRROR_ROT270; <span style="color: #0000ff">break</span>;
					<span style="color: #0000ff">case</span> Sprite.TRANS_MIRROR_ROT90: dir=Sprite.TRANS_MIRROR_ROT180; <span style="color: #0000ff">break</span>;
					<span style="color: #0000ff">case</span> Sprite.TRANS_MIRROR_ROT180: dir=Sprite.TRANS_MIRROR_ROT270; <span style="color: #0000ff">break</span>;
					<span style="color: #0000ff">case</span> Sprite.TRANS_MIRROR_ROT270: dir=Sprite.TRANS_NONE; <span style="color: #0000ff">break</span>;
				}
				<span style="color: #0000ff">this</span>.repaint();
			}
		}
	}
	
	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> destroyApp(<span style="color: #0000ff">boolean</span> unconditional)
			<span style="color: #0000ff">throws</span> MIDletStateChangeException
	{

	}

	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> pauseApp()
	{

	}

}</pre><img src ="http://www.cnitblog.com/atskyline/aggbug/46991.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-21 22:07 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/21/46991.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>J2ME笔记-画SIN函数图像</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/19/46934.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Sat, 19 Jul 2008 15:20:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/19/46934.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46934.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/19/46934.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46934.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46934.html</trackback:ping><description><![CDATA[<p><b>Canvas</b>类 低级界面开发的一个初步程序</p> <p>&nbsp;</p><pre><span style="color: #0000ff">package</span> DrawSin;

<span style="color: #0000ff">import</span> javax.microedition.lcdui.Canvas;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Display;
<span style="color: #0000ff">import</span> javax.microedition.lcdui.Graphics;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDlet;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDletStateChangeException;

<span style="color: #0000ff">public</span> <span style="color: #0000ff">class</span> MIDlet1 <span style="color: #0000ff">extends</span> MIDlet
{
	<span style="color: #0000ff">private</span> Display dis;
	<span style="color: #0000ff">private</span> Draw d = <span style="color: #0000ff">new</span> Draw();
	
	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> startApp() <span style="color: #0000ff">throws</span> MIDletStateChangeException
	{
		d.setTitle("<span style="color: #8b0000">DrawSin</span>");
		dis = Display.getDisplay(<span style="color: #0000ff">this</span>);
		dis.setCurrent(d);		

	}
	
	<span style="color: #0000ff">class</span> Draw <span style="color: #0000ff">extends</span> Canvas
	{

		<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> paint(Graphics g)
		{
			g.setColor(255, 0, 0);
			g.drawLine(0, 150, 300, 150);<span style="color: #008000">//x轴</span>
			g.drawLine(100, 0, 100, 300);<span style="color: #008000">//y轴</span>
			<span style="color: #0000ff">int</span> y=0;
			<span style="color: #0000ff">for</span>(<span style="color: #0000ff">int</span> x=0;x&lt;=3600;x++)
			{
				y= (<span style="color: #0000ff">int</span>)(150+10*Math.sin(x*Math.PI/180));
				g.drawLine((<span style="color: #0000ff">int</span>)(x/10), y, (<span style="color: #0000ff">int</span>)(x/10), y);
			}
		}
		
	}

	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> destroyApp(<span style="color: #0000ff">boolean</span> unconditional)
			<span style="color: #0000ff">throws</span> MIDletStateChangeException
	{
	}

	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> pauseApp()
	{
	}


}</pre><img src ="http://www.cnitblog.com/atskyline/aggbug/46934.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-19 23:20 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/19/46934.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>J2ME-自定义异常</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/16/46797.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Wed, 16 Jul 2008 13:17:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/16/46797.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46797.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/16/46797.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46797.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46797.html</trackback:ping><description><![CDATA[<p>其实就是J2SE异常的那些东西.</p> <p>代码中把字符串s样转换成int 明显会抛出异常</p> <p>我们定义了一个继承于Exception 的自定义异常类</p> <p>并将异常抛给客户端处理</p><pre><span style="color: #0000ff">import</span> java.util.Date;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDlet;
<span style="color: #0000ff">import</span> javax.microedition.midlet.MIDletStateChangeException;


<span style="color: #0000ff">public</span> <span style="color: #0000ff">class</span> MIDlet1 <span style="color: #0000ff">extends</span> MIDlet
{

	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> startApp() <span style="color: #0000ff">throws</span> MIDletStateChangeException
	{
		String s="<span style="color: #8b0000">a</span>";
		<span style="color: #0000ff">try</span>
		{
			<span style="color: #0000ff">this</span>.print(s);
		} <span style="color: #0000ff">catch</span> (CustomException e)
		{
			System.out.println(e.getMessage());
			System.out.println(e.getDate());
		}

	}
	<span style="color: #0000ff">public</span> <span style="color: #0000ff">void</span> print(String str) <span style="color: #0000ff">throws</span> CustomException
	{
		<span style="color: #0000ff">try</span>
		{
			<span style="color: #0000ff">int</span> intValue = Integer.parseInt(str);
			<span style="color: #0000ff">int</span> result = intValue*intValue;
			System.out.println(result);
		}
		<span style="color: #0000ff">catch</span>(Exception ex)
		{
			CustomException ce =<span style="color: #0000ff">new</span> CustomException("<span style="color: #8b0000">错误</span>",<span style="color: #0000ff">new</span> Date());
			<span style="color: #0000ff">throw</span> ce;
		}

	}
	
	<span style="color: #0000ff">class</span> CustomException <span style="color: #0000ff">extends</span> Exception
	{
		<span style="color: #0000ff">private</span> Date date;
		<span style="color: #0000ff">public</span> CustomException(String message,Date date)
		{
			<span style="color: #0000ff">super</span>(message);
			<span style="color: #0000ff">this</span>.date=date;
		}
		<span style="color: #0000ff">public</span> Date getDate()
		{
			<span style="color: #0000ff">return</span> <span style="color: #0000ff">this</span>.date;
		}
	}
	
	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> destroyApp(<span style="color: #0000ff">boolean</span> arg0) <span style="color: #0000ff">throws</span> MIDletStateChangeException
	{

	}

	<span style="color: #0000ff">protected</span> <span style="color: #0000ff">void</span> pauseApp()
	{

	}

}</pre><img src ="http://www.cnitblog.com/atskyline/aggbug/46797.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-16 21:17 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/16/46797.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>J2ME笔记-退出程序</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/14/46723.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Mon, 14 Jul 2008 14:52:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/14/46723.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46723.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/14/46723.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46723.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46723.html</trackback:ping><description><![CDATA[<p>notifyDestroyed()方法可以用来退出程序</p> <p>代码如下</p><pre>MIDlet1.<span style="color: #0000ff">this</span>.notifyDestroyed();</pre><img src ="http://www.cnitblog.com/atskyline/aggbug/46723.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-14 22:52 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/14/46723.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>J2ME笔记-关于Item类及事件</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/12/46655.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Sat, 12 Jul 2008 13:42:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/12/46655.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46655.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/12/46655.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46655.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46655.html</trackback:ping><description><![CDATA[<p>代码中演示了ChoiceGroup和TextField(列表框和文本框)的使用及其事件响应方式的使用</p>
<p>和Dispalyable类不同的是Item类是无法占据整个屏幕的</p>
<p>通常是使用Form类的<code><strong>append</strong>(Item item)添加到Form上的</code></p>
<p>Item的事件处理方式和Command的事件有几分类似</p>
<p>是通过<em>ItemCommandListener</em>或<em>ItemStateListener</em>接口实现的</p>
<p>一个是命令事件一个是状态改变的事件 具体的使用方法参看代码</p>
<pre><span style="COLOR: #008000">/**
* project :aboutItem
* @author atskyline
* @FirstWriteTime 2008.07.12
* @LastWriteTime 2008.07.12
*/</span>
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.Choice;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.ChoiceGroup;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.Command;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.Display;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.Form;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.Item;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.ItemCommandListener;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.ItemStateListener;
<span style="COLOR: #0000ff">import</span> javax.microedition.lcdui.TextField;
<span style="COLOR: #0000ff">import</span> javax.microedition.midlet.MIDlet;
<span style="COLOR: #0000ff">import</span> javax.microedition.midlet.MIDletStateChangeException;
<span style="COLOR: #0000ff">public</span> <span style="COLOR: #0000ff">class</span> MIDlet1 <span style="COLOR: #0000ff">extends</span> MIDlet <span style="COLOR: #0000ff">implements</span> ItemCommandListener,ItemStateListener
{
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> Display dis;
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> Form frm = <span style="COLOR: #0000ff">new</span> Form("<span style="COLOR: #8b0000">Form</span>");
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> ChoiceGroup cg1 =<span style="COLOR: #0000ff">new</span> ChoiceGroup("<span style="COLOR: #8b0000">ChoiceGroup</span>", Choice.POPUP);
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> TextField text1 =<span style="COLOR: #0000ff">new</span> TextField("<span style="COLOR: #8b0000">TEXT1</span>", "<span style="COLOR: #8b0000">text1</span>", 20, TextField.ANY);
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> TextField text2 =<span style="COLOR: #0000ff">new</span> TextField("<span style="COLOR: #8b0000">TEXT2</span>", "<span style="COLOR: #8b0000">text2</span>", 20, TextField.ANY);
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;private</span> Command cmdDel =<span style="COLOR: #0000ff">new</span> Command("<span style="COLOR: #8b0000">删除字符</span>",Command.ITEM,1);
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;protected</span> <span style="COLOR: #0000ff">void</span> startApp() <span style="COLOR: #0000ff">throws</span> MIDletStateChangeException
&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dis=Display.getDisplay(<span style="COLOR: #0000ff">this</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dis.setCurrent(frm);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frm.append(cg1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cg1.append("<span style="COLOR: #8b0000">选项A</span>", <span style="COLOR: #0000ff">null</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cg1.append("<span style="COLOR: #8b0000">选项B</span>", <span style="COLOR: #0000ff">null</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frm.append(text1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frm.append(text2);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text1.addCommand(cmdDel);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text2.addCommand(cmdDel);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text1.setItemCommandListener(<span style="COLOR: #0000ff">this</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text2.setItemCommandListener(<span style="COLOR: #0000ff">this</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frm.setItemStateListener(<span style="COLOR: #0000ff">this</span>);<span style="COLOR: #008000">//注意是用frm绑定而非cg1</span>
&nbsp;&nbsp;&nbsp;}
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;public</span> <span style="COLOR: #0000ff">void</span> commandAction(Command c, Item item)
&nbsp;&nbsp;&nbsp;{
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</span>(c==cmdDel)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TextField tf=(TextField)item;
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int</span> Position=tf.getCaretPosition();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.delete(Position-1, 1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;}
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;public</span> <span style="COLOR: #0000ff">void</span> itemStateChanged(Item item)
&nbsp;&nbsp;&nbsp;{
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</span>(item==cg1)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String s=cg1.getString(cg1.getSelectedIndex());
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frm.setTitle(s);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;}
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;protected</span> <span style="COLOR: #0000ff">void</span> destroyApp(<span style="COLOR: #0000ff">boolean</span> arg0) <span style="COLOR: #0000ff">throws</span> MIDletStateChangeException
&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;}
<span style="COLOR: #0000ff">&nbsp;&nbsp;&nbsp;protected</span> <span style="COLOR: #0000ff">void</span> pauseApp()
&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;}
}</pre>
<img src ="http://www.cnitblog.com/atskyline/aggbug/46655.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-12 21:42 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/12/46655.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse改变项目调试模拟器</title><link>http://www.cnitblog.com/atskyline/archive/2008/07/10/46572.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Thu, 10 Jul 2008 14:27:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/10/46572.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46572.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/10/46572.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46572.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46572.html</trackback:ping><description><![CDATA[<p>右击项目名选择"Properties"</p> <p><a href="http://www.cnitblog.com/images/cnitblog_com/atskyline/WindowsLiveWriter/Eclipse_13AA9/001_2.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="569" alt="001" src="http://www.cnitblog.com/images/cnitblog_com/atskyline/WindowsLiveWriter/Eclipse_13AA9/001_thumb.jpg" width="352" border="0"></a> </p> <p>在J2ME项中的"Device"选择要改变的模拟器</p> <p><a href="http://www.cnitblog.com/images/cnitblog_com/atskyline/WindowsLiveWriter/Eclipse_13AA9/002_2.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="539" alt="002" src="http://www.cnitblog.com/images/cnitblog_com/atskyline/WindowsLiveWriter/Eclipse_13AA9/002_thumb.jpg" width="742" border="0"></a></p><img src ="http://www.cnitblog.com/atskyline/aggbug/46572.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-10 22:27 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/10/46572.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>J2ME学习资料(不断更新) </title><link>http://www.cnitblog.com/atskyline/archive/2008/07/09/46501.html</link><dc:creator>atskyline</dc:creator><author>atskyline</author><pubDate>Wed, 09 Jul 2008 11:36:00 GMT</pubDate><guid>http://www.cnitblog.com/atskyline/archive/2008/07/09/46501.html</guid><wfw:comment>http://www.cnitblog.com/atskyline/comments/46501.html</wfw:comment><comments>http://www.cnitblog.com/atskyline/archive/2008/07/09/46501.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/atskyline/comments/commentRss/46501.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/atskyline/services/trackbacks/46501.html</trackback:ping><description><![CDATA[<p><br>收集整理的关于JAVA和J2ME的一些资料</p>
<p>部分无法直接打开的用右键迅雷下载</p>
<p><span style="FONT-FAMILY: Comic Sans MS">&lt;thinkjava第三版&gt;</span></p>
<p><a href="https://forum.eviloctal.com/attachment.php?aid=11707">https://forum.eviloctal.com/attachment.php?aid=11707</a></p>
<p><span style="FONT-FAMILY: Comic Sans MS">&lt;J2ME中文教程&gt;</span></p>
<p><a href="http://www.j2medev.com/Soft/UploadSoft/download/ebook/j2me/calf1.01a.rar">http://www.j2medev.com/Soft/UploadSoft/download/ebook/j2me/calf1.01a.rar</a></p>
<p><span style="FONT-FAMILY: Comic Sans MS">&nbsp;&lt;翁恺:JAVA语言&gt;</span></p>
<p>&nbsp;<a href="http://www.verycd.com/topics/22574/style_emoticons/">http://www.verycd.com/topics/22574/style_emoticons/</a></p>
<p><span style="FONT-FAMILY: Comic Sans MS">&lt;JAVA-J2ME移动开发实战教学[郭克华]&gt;</span></p>
<p><a href="http://www.enet.com.cn/eschool/video/j2me/">http://www.enet.com.cn/eschool/video/j2me/</a></p>
<p><br><span style="FONT-FAMILY: Comic Sans MS">&lt;Java注释规范&gt;</span></p>
<p><a href="http://www.handandaily.com/blog/upload/Java注释规范.pdf">http://www.handandaily.com/blog/upload/Java注释规范.pdf</a></p>
<p><span style="FONT-FAMILY: Comic Sans MS">&lt;jdk6docs中文&gt;</span></p>
<p><a href="http://gceclub.sun.com.cn/Java_Docs/jdk6/html_zh_CN.zip">http://gceclub.sun.com.cn/Java_Docs/jdk6/html_zh_CN.zip<br></a><br>&lt;Eclipse中文教程&gt;<br><a href="http://download.csdn.net/source/351943">http://download.csdn.net/source/351943</a></p>
<img src ="http://www.cnitblog.com/atskyline/aggbug/46501.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/atskyline/" target="_blank">atskyline</a> 2008-07-09 19:36 <a href="http://www.cnitblog.com/atskyline/archive/2008/07/09/46501.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>