<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>「[程式分享]使用Eclipse的Virtual Editor撰寫的時鐘 、倒數、計時器」的迴響</title>
	<atom:link href="http://blog.yslifes.com/archives/392/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yslifes.com/archives/392</link>
	<description>自己寫java程式的一些筆記</description>
	<lastBuildDate>Wed, 01 Feb 2012 15:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>由：jorson</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-190</link>
		<dc:creator>jorson</dc:creator>
		<pubDate>Sun, 23 May 2010 23:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-190</guid>
		<description>^^ 感謝你無私的分享
我已經下載了，真是謝謝啊！</description>
		<content:encoded><![CDATA[<p>^^ 感謝你無私的分享<br />
我已經下載了，真是謝謝啊！</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yku</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-189</link>
		<dc:creator>yku</dc:creator>
		<pubDate>Sun, 23 May 2010 22:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-189</guid>
		<description>我把路徑加上去了^^
你可以下載看看嚕,有問題再跟我講</description>
		<content:encoded><![CDATA[<p>我把路徑加上去了^^<br />
你可以下載看看嚕,有問題再跟我講</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：jorson</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-187</link>
		<dc:creator>jorson</dc:creator>
		<pubDate>Sun, 23 May 2010 07:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-187</guid>
		<description>^^ 你好，請問可以下載你做好的jar檔嗎？
但我找不到下載連結 ^^&#124;&#124;</description>
		<content:encoded><![CDATA[<p>^^ 你好，請問可以下載你做好的jar檔嗎？<br />
但我找不到下載連結 ^^||</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yku</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-134</link>
		<dc:creator>yku</dc:creator>
		<pubDate>Mon, 12 Apr 2010 12:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-134</guid>
		<description>我用NowTimeThread這個thread下去改一下給你看
在run裡面改成
&lt;pre lang=&quot;java&quot;&gt;
if (this.time == null) {
				this.time = new TimeClock();
				this.time.setNow();// 取得現在時間
			} else {
				this.time.toUp();
			}
			if(this.time.getH()==h &amp;&amp; this.time.getM()==m &amp;&amp; this.time.getS()==s)
			{
				//new 一個thread 去撥鬧鐘音樂
			}
			c.setTime(1, this.time.getTime());&lt;/pre&gt;
記得TimeClock要加三個function 來取得時分秒</description>
		<content:encoded><![CDATA[<p>我用NowTimeThread這個thread下去改一下給你看<br />
在run裡面改成</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TimeClock<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">setNow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">// 取得現在時間</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">toUp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">getH</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>h <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">getM</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>m <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">getS</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>s<span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">//new 一個thread 去撥鬧鐘音樂</span>
			<span style="color: #009900;">&#125;</span>
			c.<span style="color: #006633;">setTime</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">time</span>.<span style="color: #006633;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>記得TimeClock要加三個function 來取得時分秒</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：STUDENT</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-129</link>
		<dc:creator>STUDENT</dc:creator>
		<pubDate>Sat, 10 Apr 2010 18:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-129</guid>
		<description>抱歉可否再詳細一點</description>
		<content:encoded><![CDATA[<p>抱歉可否再詳細一點</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yku</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-128</link>
		<dc:creator>yku</dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-128</guid>
		<description>應該要有一個thread檢查你設定要鬧鐘的時間(每秒check一次),當一樣時撥放音樂,撥完後離開這個thread
大概的概念應該這樣子吧</description>
		<content:encoded><![CDATA[<p>應該要有一個thread檢查你設定要鬧鐘的時間(每秒check一次),當一樣時撥放音樂,撥完後離開這個thread<br />
大概的概念應該這樣子吧</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：STUDENT</title>
		<link>http://blog.yslifes.com/archives/392/comment-page-1#comment-127</link>
		<dc:creator>STUDENT</dc:creator>
		<pubDate>Thu, 08 Apr 2010 12:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yslifes.com/?p=392#comment-127</guid>
		<description>請問鬧鐘該如何寫</description>
		<content:encoded><![CDATA[<p>請問鬧鐘該如何寫</p>
]]></content:encoded>
	</item>
</channel>
</rss>

