<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Tech Hub</title><description></description><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><pubDate>Wed, 28 Aug 2024 20:34:17 +0800</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">11</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://javacrib.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Music Album</title><link>http://javacrib.blogspot.com/2012/03/music-album.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 3 Mar 2012 11:02:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-9060036937216505380</guid><description>&lt;br /&gt;
I was playing around with garage band and imovie.... ^_^&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/EpqWsjhPJBs?feature=player_embedded' frameborder='0'&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Emails and passwords uploaded on Torrent.... Are you one of them??</title><link>http://javacrib.blogspot.com/2010/12/emails-and-passwords-uploaded-on.html</link><category>account</category><category>email</category><category>gawkers</category><category>password</category><category>torrent</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 14 Dec 2010 21:37:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-3179009739772631611</guid><description>Gawkers account posted on torrent for everyone to see.... If you have an account with them and you use the same password on your other accounts, then its time to change your passwords.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://blogs.forbes.com/firewall/2010/12/13/the-lessons-of-gawkers-security-mess/"&gt;More details on the story can be found here....&lt;/a&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Pure Google Nexus S</title><link>http://javacrib.blogspot.com/2010/12/pure-google-nexus-s.html</link><category>android</category><category>google</category><category>nexus</category><category>samsung</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 11 Dec 2010 17:52:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-1531027297535167192</guid><description>&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;The next Google phone to follow in the footsteps of the Nexus One. This time manufactured by Samsung and it already includes &lt;a href="http://javacrib.blogspot.com/2010/12/looking-good-for-android.html"&gt;Android 2.3&lt;/a&gt; YEAH!!.... :D &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;check out the specs:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;1GHz Hummingbird CPU&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;512MB of RAM&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;4-inch, 800 x 480&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;em&gt;curved&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;Super AMOLED&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&amp;nbsp;display&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;16GB of storage&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;5 megapixel rear and VGA front-facing camera&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;And near field communication capabilities.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/lxUXulxE5o0?fs=1&amp;amp;hl=en_US"&gt;

&lt;/param&gt;
&lt;param name="allowFullScreen" value="true"&gt;

&lt;/param&gt;
&lt;param name="allowscriptaccess" value="always"&gt;

&lt;/param&gt;
&lt;embed src="http://www.youtube.com/v/lxUXulxE5o0?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/cnzwm_bdmxY?fs=1&amp;amp;hl=en_US"&gt;

&lt;/param&gt;
&lt;param name="allowFullScreen" value="true"&gt;

&lt;/param&gt;
&lt;param name="allowscriptaccess" value="always"&gt;

&lt;/param&gt;
&lt;embed src="http://www.youtube.com/v/cnzwm_bdmxY?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;a href="http://www.google.com/nexus"&gt;Know more about Nexus S here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #444444; font-family: Times, 'Times New Roman', serif; line-height: 19px;"&gt;&lt;br /&gt;
&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Looking good for Android</title><link>http://javacrib.blogspot.com/2010/12/looking-good-for-android.html</link><category>android</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 11 Dec 2010 17:02:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-7069523835795945250</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwOhWw7tTZdXpZ7gOy6g1qr5UnFee1l5fWFbr-xZRdvVJrtpBa7for7PYd2ISR66WbiszLKRp2AnHBlfn_YCUwsRv8KNVyATE3AtrxdFqA2JJZyY1odSVdx4u4qSAXIyO09Jk_BE9S4cU/s1600/gingerdroid.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwOhWw7tTZdXpZ7gOy6g1qr5UnFee1l5fWFbr-xZRdvVJrtpBa7for7PYd2ISR66WbiszLKRp2AnHBlfn_YCUwsRv8KNVyATE3AtrxdFqA2JJZyY1odSVdx4u4qSAXIyO09Jk_BE9S4cU/s1600/gingerdroid.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
With the release Android 2.3 it gets better with a lot of optimizations for games and more.... The fastest Android yet!! woo hoo... time to put the thinking cap on.... ^_^&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://android-developers.blogspot.com/2010/12/android-23-platform-and-updated-sdk.html"&gt;Check it out here....&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.crn.com/news/client-devices/228800141/google-300-000-android-phones-activated-each-day.htm"&gt;The Android fever is also spreading with 300,000 activations each day.... Nice....&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Jx3pdWBlZ34?fs=1&amp;amp;hl=en_US"&gt;

&lt;/param&gt;
&lt;param name="allowFullScreen" value="true"&gt;

&lt;/param&gt;
&lt;param name="allowscriptaccess" value="always"&gt;

&lt;/param&gt;
&lt;embed src="http://www.youtube.com/v/Jx3pdWBlZ34?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="550" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwOhWw7tTZdXpZ7gOy6g1qr5UnFee1l5fWFbr-xZRdvVJrtpBa7for7PYd2ISR66WbiszLKRp2AnHBlfn_YCUwsRv8KNVyATE3AtrxdFqA2JJZyY1odSVdx4u4qSAXIyO09Jk_BE9S4cU/s72-c/gingerdroid.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Apache foundation resigns from JCP</title><link>http://javacrib.blogspot.com/2010/12/apache-foundation-resigns-from-jcp.html</link><category>java</category><category>JCP</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 11 Dec 2010 14:46:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-2351215646732977746</guid><description>Is this also goodbye to an old friend.... ^_^&lt;br /&gt;
&lt;br /&gt;
It's not looking good for Java.... *sigh*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
find out more &lt;span class="Apple-style-span" style="color: #222222; font-family: 'Helvetica Neue', 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif;"&gt;&lt;a href="http://blogs.apache.org/foundation/date/20101209"&gt;&lt;b&gt;The ASF Resigns From the JCP Executive Committee&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>A few simple steps to profile J2ME applications on your Mac</title><link>http://javacrib.blogspot.com/2010/12/few-simple-steps-to-profile-j2me.html</link><category>guide</category><category>J2ME</category><category>java</category><category>Mac</category><category>netbeans</category><category>profile</category><category>tutorial</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 9 Dec 2010 21:57:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-5433608357935135996</guid><description>The first step of optimizing any application is finding out that small percentage that is taking up your applications execution time. That is why profiling tools are invaluable to find where to squeeze out more juice. Specially when it comes to J2ME applications where resources are very limited.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a simple guide on setting up your J2ME applications for profiling. We are going to make use of the Built in profiler of&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp" style="color: #3366cc; font-weight: bold;"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;,&amp;nbsp;&lt;/span&gt;a very useful tool to be able to pin point the areas that need optimization....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lets start by setting up our existing J2ME project on the Java ME SDK for Mac IDE.&lt;br /&gt;
&lt;br /&gt;
Open up your JavaME SDK IDE and create a new project.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNnwtdGXxZylQOKmfWTOO2a7RZYd1S0rWeBVgcrzbktenYTKO322dRscJAktRUqzO1t0P9zUg9BeJ7RWXdn1PWB65raUWu8EeZnwfL16dtq-buSDgI_CNr1iKgDIXe2cUKUE3jSnIv99Q/s1600/J2ME+profiling+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNnwtdGXxZylQOKmfWTOO2a7RZYd1S0rWeBVgcrzbktenYTKO322dRscJAktRUqzO1t0P9zUg9BeJ7RWXdn1PWB65raUWu8EeZnwfL16dtq-buSDgI_CNr1iKgDIXe2cUKUE3jSnIv99Q/s400/J2ME+profiling+1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjzDh2smMIauhNAX2EKMPe30XBWUhvyjn3Aj_NTI3T09DRz7izZyMaYeEieCZvSOQVMFDg7NaYn8qz09GcgZBac_ODCYIFaQpfeg2XCML17c3yc-oHPvCXIQNBWi1pMKVWacvtripOGM4/s1600/J2ME+profiling+2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjzDh2smMIauhNAX2EKMPe30XBWUhvyjn3Aj_NTI3T09DRz7izZyMaYeEieCZvSOQVMFDg7NaYn8qz09GcgZBac_ODCYIFaQpfeg2XCML17c3yc-oHPvCXIQNBWi1pMKVWacvtripOGM4/s400/J2ME+profiling+2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3Qqnjb9lONgRICSWrHmZNSl6uPKtgozbpNb_E3J2PNHss_qPwPCO0-B15dXyyvSnHYv5rc_8bdrIAqtSZyWnEQYsJOfPjKVQd1tuqCSivedYsq3JJadaxItflv1ahzRDx8ITsPYX6nTY/s1600/J2ME+profiling+3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3Qqnjb9lONgRICSWrHmZNSl6uPKtgozbpNb_E3J2PNHss_qPwPCO0-B15dXyyvSnHYv5rc_8bdrIAqtSZyWnEQYsJOfPjKVQd1tuqCSivedYsq3JJadaxItflv1ahzRDx8ITsPYX6nTY/s400/J2ME+profiling+3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGj7w0uYWUllxDjFe73xWt8113rXt2W1n-Mamz4rs1zlyqy0X7hO1mymDULHuGawRDmdwh5b9Jjs4F9dt-dSuNk_0BNxeKGIRnA2iiBZ4tIfygk7lDMfHuMvN_eAQuGdXOD77zT1UnQGA/s1600/J2ME+profiling+4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="295" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGj7w0uYWUllxDjFe73xWt8113rXt2W1n-Mamz4rs1zlyqy0X7hO1mymDULHuGawRDmdwh5b9Jjs4F9dt-dSuNk_0BNxeKGIRnA2iiBZ4tIfygk7lDMfHuMvN_eAQuGdXOD77zT1UnQGA/s400/J2ME+profiling+4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoqRBtwJWnN7bodgpq7-HI1lNWhoUAfqhLiGBUAGExpt3IdckDNkVxxV24DviWh1_hyplgXeyd-wyyL0IHDTmUr5kh7S9uc_xPp4hRqeMGsQTBEB6gyOL8cVihvsE3p5xzDouf6o9UdtA/s1600/J2ME+profiling+5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoqRBtwJWnN7bodgpq7-HI1lNWhoUAfqhLiGBUAGExpt3IdckDNkVxxV24DviWh1_hyplgXeyd-wyyL0IHDTmUr5kh7S9uc_xPp4hRqeMGsQTBEB6gyOL8cVihvsE3p5xzDouf6o9UdtA/s400/J2ME+profiling+5.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqgFTqRGQrpAFUen4W5L1kQAQCL8YyNx-CpdifXftNv6KphBJbBIXi8tKwVvCoQ4sgFjnt05Gr222sbxeNqhUPv05IdCuRXSHidjd8zG6i76Zmx9KgGAOLHo6hmSSyJrQtb4CkRDvKyZk/s1600/J2ME+profiling+6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqgFTqRGQrpAFUen4W5L1kQAQCL8YyNx-CpdifXftNv6KphBJbBIXi8tKwVvCoQ4sgFjnt05Gr222sbxeNqhUPv05IdCuRXSHidjd8zG6i76Zmx9KgGAOLHo6hmSSyJrQtb4CkRDvKyZk/s400/J2ME+profiling+6.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2lPlvKE2R9zj-wVPRO1WVDL9Yd5wFCHDz4tGTlkMm3XhE8kbTvGlsuMNzmpO4MYbenpp22tr2f81wNY24epCqCr1Xu8c3fFOE9fUv92kjZ_y3c1PE6pv_B3ESl7CU7DzcFzZLZMN2dIs/s1600/J2ME+profiling+7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2lPlvKE2R9zj-wVPRO1WVDL9Yd5wFCHDz4tGTlkMm3XhE8kbTvGlsuMNzmpO4MYbenpp22tr2f81wNY24epCqCr1Xu8c3fFOE9fUv92kjZ_y3c1PE6pv_B3ESl7CU7DzcFzZLZMN2dIs/s400/J2ME+profiling+7.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNruiKdu4YEJycsqXRTw8ZGBJWs9uK1RmXwTQpQOG0faGXDN5cxMxAS7utYepOeDDNrEXYBA2eRqfMKDIAa7MeXFmchj6k4psJCx1Bc2XFjaICQRBB2BwIU-WO-TekCqQ_xPKQY9qjbds/s1600/J2ME+profiling+8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNruiKdu4YEJycsqXRTw8ZGBJWs9uK1RmXwTQpQOG0faGXDN5cxMxAS7utYepOeDDNrEXYBA2eRqfMKDIAa7MeXFmchj6k4psJCx1Bc2XFjaICQRBB2BwIU-WO-TekCqQ_xPKQY9qjbds/s400/J2ME+profiling+8.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF-BxRe6wYkh7kY3YyEhW0wGliZMOGkCi0VGsD3vy8ByF2M15xeUx5r3ARHSsi-BiOBXJEbZCjQNokP1AGGP4YLX4sxAclAX82oV2kuGYlECW8iR4X4VS3bQi_mCyQa_By3AdQRoHZF0M/s1600/J2ME+profiling+8.2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF-BxRe6wYkh7kY3YyEhW0wGliZMOGkCi0VGsD3vy8ByF2M15xeUx5r3ARHSsi-BiOBXJEbZCjQNokP1AGGP4YLX4sxAclAX82oV2kuGYlECW8iR4X4VS3bQi_mCyQa_By3AdQRoHZF0M/s400/J2ME+profiling+8.2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that our project is setup.... we set the profiler on.....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1BYGUTE1gcImc_sYS3Mb7L4X62Envqv52nt5vo3h4UzhQBSr1BDGp6jzEsf3EQd_GfFeRwujjbzzOD3JUBbsZrO6CNKmcxaehBp6lX68XwKXMUDaWAnLS36WXyMKbVDo0xQtzw6E_0yQ/s1600/J2ME+profiling+9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1BYGUTE1gcImc_sYS3Mb7L4X62Envqv52nt5vo3h4UzhQBSr1BDGp6jzEsf3EQd_GfFeRwujjbzzOD3JUBbsZrO6CNKmcxaehBp6lX68XwKXMUDaWAnLS36WXyMKbVDo0xQtzw6E_0yQ/s400/J2ME+profiling+9.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1Z_e-Kj6AO0tJ-xImz5eakWciYawFYSz1JdhyphenhyphenG7oy2sWrOyOSdoZ43mbZTZZGbMRKknbrCQJPy2coNEdcPotna3OMC7gMe1cLSs4DhNkPXXvE22PbbBPSAv5hg8SQ0JKKhDvrqVpVqBw/s1600/J2ME+profiling+10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="271" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1Z_e-Kj6AO0tJ-xImz5eakWciYawFYSz1JdhyphenhyphenG7oy2sWrOyOSdoZ43mbZTZZGbMRKknbrCQJPy2coNEdcPotna3OMC7gMe1cLSs4DhNkPXXvE22PbbBPSAv5hg8SQ0JKKhDvrqVpVqBw/s400/J2ME+profiling+10.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
If we did everything right... we the profile data from our application will be opened on our IDE&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXYKpMNzIX2CZfvrEbYW8ki5S6nfhY2ZFAtHPwG20t8ghk6oHuP5Av0SkvWJN4hjMZScHxcI-ReTtPv7982zFCYV29AcTVKFflZ7kHHCQl17TWQ8QQIIZdinmZV691JriftdDXnpYEmoU/s1600/J2ME+profiling+11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXYKpMNzIX2CZfvrEbYW8ki5S6nfhY2ZFAtHPwG20t8ghk6oHuP5Av0SkvWJN4hjMZScHxcI-ReTtPv7982zFCYV29AcTVKFflZ7kHHCQl17TWQ8QQIIZdinmZV691JriftdDXnpYEmoU/s320/J2ME+profiling+11.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can analyze the data that the profiler gathered and we can now plan our optimization....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for questions, comments, suggestions, violent reactions, etc. feel free to leave a comment or send me an email. :P</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNnwtdGXxZylQOKmfWTOO2a7RZYd1S0rWeBVgcrzbktenYTKO322dRscJAktRUqzO1t0P9zUg9BeJ7RWXdn1PWB65raUWu8EeZnwfL16dtq-buSDgI_CNr1iKgDIXe2cUKUE3jSnIv99Q/s72-c/J2ME+profiling+1.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Quick and simple guide on developing J2ME apps on your Mac</title><link>http://javacrib.blogspot.com/2010/12/quick-and-simple-guide-on-developing.html</link><category>apps</category><category>eclipse</category><category>emulator</category><category>guide</category><category>IDE</category><category>J2ME</category><category>java</category><category>Mac</category><category>netbeans</category><category>SDK</category><category>tutorial</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 9 Dec 2010 00:15:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-8302344811471242153</guid><description>Planning to develop J2ME applications?? Well here is a quick and easy guide that will get you started in no time.&lt;br /&gt;
&lt;br /&gt;
What you will need....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a Mac computer... Oh you want to develop on PC? Ask me how :P&lt;br /&gt;
&lt;br /&gt;
an IDE.... you have lots of choices.... personally i prefer &lt;a href="http://www.eclipse.org/"&gt;Eclipse IDE&lt;/a&gt;&amp;nbsp;in the case of J2ME you're better off getting &lt;a href="http://www.eclipse.org/pulsar/"&gt;Pulsar Eclipse Mobile Platform&lt;/a&gt;&amp;nbsp;you could also use &lt;a href="http://www.netbeans.org/"&gt;Netbeans IDE&lt;/a&gt;&amp;nbsp;or you can use&amp;nbsp;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;&amp;nbsp;you have lots of choices, i use all of them well not at the same time i code in Netbeans and Eclipse and i just use the Java Me SDK for profiling mobile apps.&lt;br /&gt;
&lt;br /&gt;
Now that you have your IDE you will also need the &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;Java Dev Kit&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;&amp;nbsp;(Sa wakas meron na rin sa mac hehehe).&lt;br /&gt;
&lt;br /&gt;
Requirements list:&lt;br /&gt;
1.) Mac computer (you can use PC its almost the same setup).&lt;br /&gt;
2.) IDE -&amp;nbsp;&lt;a href="http://www.eclipse.org/pulsar/"&gt;Pulsar Eclipse Mobile Platform&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="http://www.netbeans.org/"&gt;Netbeans IDE&lt;/a&gt;&amp;nbsp;or just use the&amp;nbsp;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;.&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
3.) Software Dev Kits -&amp;nbsp;&lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;Java Dev Kit&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
Are you ready? Here we go....&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
First we fire up our IDE.... I will be using&amp;nbsp;&lt;a href="http://java.sun.com/javame/downloads/sdk30_mac.jsp"&gt;Java ME SDK 3.0 for Mac&lt;/a&gt;&amp;nbsp;for the purpose of this tutorial....&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6a0deDSdoQj1revNi09tXYLMt1xvftyMiPoTgSlOLWwndnWcGFSaxoILwzK8BVKOkICOOi4KHf97Qo05jUnJmuTfc1pEnTy1cw11yIPA3SQftYkDEoiiX3lebukyGNO1OjASC7MYymW8/s1600/JavaMeSDK1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6a0deDSdoQj1revNi09tXYLMt1xvftyMiPoTgSlOLWwndnWcGFSaxoILwzK8BVKOkICOOi4KHf97Qo05jUnJmuTfc1pEnTy1cw11yIPA3SQftYkDEoiiX3lebukyGNO1OjASC7MYymW8/s320/JavaMeSDK1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then we create a new project.....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv0f2bZD6alpU6zjNB-qUdoEDdip5zN5EdetjTjMFaVw0iIdi1_UaJjZjXlF6_umBNpHzcWxrG3wzMOWdDLLt3zADqr6MefFE-9P9siOEUUw57dK9osFNiNzyJwXwcSxU66qaK-x2EU5I/s1600/JavaMeSDK1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv0f2bZD6alpU6zjNB-qUdoEDdip5zN5EdetjTjMFaVw0iIdi1_UaJjZjXlF6_umBNpHzcWxrG3wzMOWdDLLt3zADqr6MefFE-9P9siOEUUw57dK9osFNiNzyJwXwcSxU66qaK-x2EU5I/s400/JavaMeSDK1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose MIDP applicaton....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGcU8KyXLUbf12n8uyRrSdrR3kOs2YcapnWVKd27mfaBlrkxv8IwmRA-6gGS903xBuq7Tk7_hcSWY-A7drkxsQQDuptAVJIGN0gaIfaqY4IbfRYQjgCgxYzE48bwpkDH-U6EUq4gNWwRg/s1600/JavaMeSDK3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGcU8KyXLUbf12n8uyRrSdrR3kOs2YcapnWVKd27mfaBlrkxv8IwmRA-6gGS903xBuq7Tk7_hcSWY-A7drkxsQQDuptAVJIGN0gaIfaqY4IbfRYQjgCgxYzE48bwpkDH-U6EUq4gNWwRg/s400/JavaMeSDK3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose you project name and location...&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1XzV_vGjger_jLYO9aawnlZK5gFlR7zMtnJeWzEF1i-337mbBwqBTx4jjmH8IrK4V36mbJ6NMeDi2qIL4mFQcrfDQWlt0ew3XQKSE4gnldIUQHTlrL8F22ROQ22wyb3NXRCMohB-YfR4/s1600/JavaMeSdk4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1XzV_vGjger_jLYO9aawnlZK5gFlR7zMtnJeWzEF1i-337mbBwqBTx4jjmH8IrK4V36mbJ6NMeDi2qIL4mFQcrfDQWlt0ew3XQKSE4gnldIUQHTlrL8F22ROQ22wyb3NXRCMohB-YfR4/s400/JavaMeSdk4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose an emulator.... in this case i use default.... click Finish....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPHipyEQZCvdyFbSUuSmFU2ihKU_QapwhflXMQW0vLkRMnJVqkRRS9qzoV854dGNxsXn2Zz4puAMEW6-SIc6LgkCZDD9ryAryBXMwqTmLRpYexk_k5m4kg0z6_gjcPOsJW1BAj330b2gU/s1600/JavaMeSdk5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPHipyEQZCvdyFbSUuSmFU2ihKU_QapwhflXMQW0vLkRMnJVqkRRS9qzoV854dGNxsXn2Zz4puAMEW6-SIc6LgkCZDD9ryAryBXMwqTmLRpYexk_k5m4kg0z6_gjcPOsJW1BAj330b2gU/s400/JavaMeSdk5.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Our new project shows up on our project explorer, and our class opens up on our editor window....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPD1bmT4A7sXh57Ls5-_cDKvJu3Ri00GypaBKOVscqDGAdrnxqr3hvvnRFk1zZiayAvU3vw4LcHrAPxuQMkezhpJ0tEDin6oYroQahwKEVhnYDdiS76kHxtiVUuxieqv5VVhGlJX2aQ7s/s1600/JavaMeSDK6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPD1bmT4A7sXh57Ls5-_cDKvJu3Ri00GypaBKOVscqDGAdrnxqr3hvvnRFk1zZiayAvU3vw4LcHrAPxuQMkezhpJ0tEDin6oYroQahwKEVhnYDdiS76kHxtiVUuxieqv5VVhGlJX2aQ7s/s400/JavaMeSDK6.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
We change some code on our sample Midlet class....&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgntnzZUR7XkWtFAfCGz9UO4jUtllEKj-p84AESTGHO_ipZHjLPgcnz8WZ5DZuwT8j3_5akgdKcTM8pATGw5cxjWJho5BaGGdOdN3U2BvPuSnmXnEk8UZojF9bB-wUMOXa2hvmWIfwiY3o/s1600/JavaMeSdk7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="310" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgntnzZUR7XkWtFAfCGz9UO4jUtllEKj-p84AESTGHO_ipZHjLPgcnz8WZ5DZuwT8j3_5akgdKcTM8pATGw5cxjWJho5BaGGdOdN3U2BvPuSnmXnEk8UZojF9bB-wUMOXa2hvmWIfwiY3o/s400/JavaMeSdk7.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Now we run our project.... The emulator displays our text.....&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgntnzZUR7XkWtFAfCGz9UO4jUtllEKj-p84AESTGHO_ipZHjLPgcnz8WZ5DZuwT8j3_5akgdKcTM8pATGw5cxjWJho5BaGGdOdN3U2BvPuSnmXnEk8UZojF9bB-wUMOXa2hvmWIfwiY3o/s1600/JavaMeSdk7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRlZSD6Jk9WgO0sInH9Tcc_KEwKzCPq8cBx35i0mJWO7wXjQZH5Q4upq7BVcqJNfyb48SamMSMLTJg0K4fVo5Bu9KroK0m72pka5xKmpxEwFSlVMzlwbAvxfbn_SmY_KEAIs6cIaROjAQ/s1600/JavaMeSdk8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="262" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRlZSD6Jk9WgO0sInH9Tcc_KEwKzCPq8cBx35i0mJWO7wXjQZH5Q4upq7BVcqJNfyb48SamMSMLTJg0K4fVo5Bu9KroK0m72pka5xKmpxEwFSlVMzlwbAvxfbn_SmY_KEAIs6cIaROjAQ/s400/JavaMeSdk8.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, there you have it.... a few simple steps to get you started on your J2ME application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 13px; line-height: 18px;"&gt;for questions, comments, suggestions, violent reactions, etc. feel free to leave a comment or send me an email. :P&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6a0deDSdoQj1revNi09tXYLMt1xvftyMiPoTgSlOLWwndnWcGFSaxoILwzK8BVKOkICOOi4KHf97Qo05jUnJmuTfc1pEnTy1cw11yIPA3SQftYkDEoiiX3lebukyGNO1OjASC7MYymW8/s72-c/JavaMeSDK1.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Introduction to Java Swing Applications</title><link>http://javacrib.blogspot.com/2010/10/introduction-to-java-swing-applications.html</link><category>eclipse</category><category>GUI</category><category>guide</category><category>IDE</category><category>java</category><category>JDK</category><category>netbeans</category><category>swing application</category><category>tutorial</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 4 Oct 2010 02:31:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-4081859917971177321</guid><description>&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Here is my next tutorial for new JAVA developers, I would like to introduce to you JAVA swing applications. JAVA swing is a GUI(Graphical User Interfame) framework for JAVA and it is included in the JDK(JAVA Development Kit). If you really want to make complex user interface using JAVA Swing , Netbeans IDE has a very good Interface Designer, but i wont be using Netbeans for my tutorial because the purpose of this tutorial is just to introduce you to Swing development. Instead we will be using my favorite IDE which is Eclipse like my past &lt;a href="http://javacrib.blogspot.com/2010/10/how-to-be-java-programmer.html"&gt;JAVA tutorials&lt;/a&gt;.&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
To start with our tutorial we will need to create a new JAVA Project in Eclipse. If you still do not know to do this you better start here..&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
We will now create our new Java Swing Class&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxH1pIqCKFBhPoyMuyRhGEvDpXeQdS81el06heBcEjhMrb0K1aWl8JyJUBn8YtmgdJgIoW6Mk6iYLyGiPFSTk6THRk0CRE6ZWkx9UN8W5A5tB3NeuVMWRslHOQwsjFl3LYfN3yWk641-s/s1600/How+to+be+a+JAVA2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxH1pIqCKFBhPoyMuyRhGEvDpXeQdS81el06heBcEjhMrb0K1aWl8JyJUBn8YtmgdJgIoW6Mk6iYLyGiPFSTk6THRk0CRE6ZWkx9UN8W5A5tB3NeuVMWRslHOQwsjFl3LYfN3yWk641-s/s400/How+to+be+a+JAVA2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Right click on your &lt;b&gt;src folder &lt;/b&gt;and choose&lt;b&gt;&amp;nbsp;New... &lt;/b&gt;then choose &lt;b&gt;Class&lt;/b&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9y32BLcPs-TPRtlsi-oLbct9B5WQNiL_XbUIqyifg7373fw4xDU7jFng8ifR3BVsxHNcF2_n5ZerP_wQAqaZ4gnLd3QVif0cW5RsBOGAN5ggzbjsw53NHpo6dGwDu_bU3Kqpycl7txt4/s1600/JAVA+Swing1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9y32BLcPs-TPRtlsi-oLbct9B5WQNiL_XbUIqyifg7373fw4xDU7jFng8ifR3BVsxHNcF2_n5ZerP_wQAqaZ4gnLd3QVif0cW5RsBOGAN5ggzbjsw53NHpo6dGwDu_bU3Kqpycl7txt4/s400/JAVA+Swing1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small; font-weight: normal; line-height: 18px;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;then choose your Class Name and Package name. In our case use&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Package -&amp;gt; com.wfdb&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Class Name -&amp;gt; HelloSwing&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;then click on&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Finish...&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbkZmx97CGGJFlY1q1XFhWhBGcl8YCHXu0Ow5Ge7gJ1qAdhSNn_sIUMKyGEMJeJBML6UZ1t7CTppxbEHFTxShNyDfZuEq0kgIHJ0225GUnRvU1Wnpw1o8A1-9dEXsEw7J2dqRnA3k10Os/s1600/JAVA+Swing2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbkZmx97CGGJFlY1q1XFhWhBGcl8YCHXu0Ow5Ge7gJ1qAdhSNn_sIUMKyGEMJeJBML6UZ1t7CTppxbEHFTxShNyDfZuEq0kgIHJ0225GUnRvU1Wnpw1o8A1-9dEXsEw7J2dqRnA3k10Os/s400/JAVA+Swing2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Our new class should look something like this...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Now we add some code...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
First we extend our HelloSwing Class to Jframe Class&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&amp;nbsp;&amp;nbsp;&lt;i&gt; public class HelloSwing &lt;b&gt;extends JFrame&lt;/b&gt; {&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Then we add a constructor for our HelloSwing Class&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;i&gt;&lt;b&gt;public HelloSwing() {&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
The constructor of a class is called when we make an instance of that class executing the code inside it&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Now we add code inside our constructor&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;i&gt;&lt;b&gt;public HelloSwing() {&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;JLabel hello = new JLabel("Hello World");&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;add(hello);&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setSize(100, 100);&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;setVisible(true);&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Lets discuss what each line of code does...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;1.) &amp;nbsp;&lt;b&gt;JLabel hello = new JLabel("Hello World");&lt;/b&gt; - &lt;/i&gt;this piece of code means that we create a new Instance of a JLabel Class set its value to "Hello World" and store it in our hello object.&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
JLabel is a class in the swing framework just like JFrame. There are other classes we can use like JTextField, JButton, etc. that we can use for our JAVA application.&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
2.)&amp;nbsp;&lt;i&gt;&lt;b&gt;add(hello);&lt;/b&gt; - &lt;/i&gt;this piece of code adds our hello object to our HelloSwing Class. the method add(); is a method from the JFrame class, because we extended our HelloSwing Class to JFrame we are able to use its public methods.&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
3.)&amp;nbsp;&lt;i&gt;&lt;b&gt;setSize(100, 100);&lt;/b&gt; - &lt;/i&gt;this piece of code sets the size of our Frame to 100 width and 100 height. It is also a method of the JFrame Class which we have extended for our HelloSwing Class.&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
4.)&amp;nbsp;&lt;i&gt;&lt;b&gt;setVisible(true);&lt;/b&gt; - &lt;/i&gt;this is also a method of the JFrame Class and it sets our Frame visible.&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Next is we add the entry point of our JAVA application...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;i&gt;&lt;b&gt;public static void main(String[] args) {&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;new HelloSwing();&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;1.)&lt;/span&gt;&lt;b&gt; public static void main(String[] args) { } - &lt;/b&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;This is the entry point of a JAVA application it is the first method that will be executed&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;2.)&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;b&gt;new HelloSwing(); - &lt;/b&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;Inside our main method we create an instance of our HelloSwing Class. using the new keyword we create an instance of a Class.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig5s9grmD7LNlKtwsXr-7bNXFX2EGnjVKLu2vN3HZr9MxL5BSehYhTicVv-5dkabFzJkpUfkeGwkjfPrRqML5f1i1iTAXZ_8sDaS2wPTFdT3_omGTLEnS2vbzURkAkY5R1h9KlXVrQ3Qg/s1600/JAVA+Swing3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig5s9grmD7LNlKtwsXr-7bNXFX2EGnjVKLu2vN3HZr9MxL5BSehYhTicVv-5dkabFzJkpUfkeGwkjfPrRqML5f1i1iTAXZ_8sDaS2wPTFdT3_omGTLEnS2vbzURkAkY5R1h9KlXVrQ3Qg/s400/JAVA+Swing3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Our code should look something like this...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Now to run our code...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigZvLcUqMBxTl_PVN_KaFavab44qVH1meZ8PFA1lXli_bQgI2WoOYqxJzv2B5XiVVm-4SiXk6mr0idLuzOYFXB3eT7zBDO4UEYbrwiOflEwKSZSVclAvP6mWzxMMh2HDaIzF2Ca4nkcZc/s1600/JAVA+Swing4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigZvLcUqMBxTl_PVN_KaFavab44qVH1meZ8PFA1lXli_bQgI2WoOYqxJzv2B5XiVVm-4SiXk6mr0idLuzOYFXB3eT7zBDO4UEYbrwiOflEwKSZSVclAvP6mWzxMMh2HDaIzF2Ca4nkcZc/s400/JAVA+Swing4.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
We right click on our Class... then choose &lt;b&gt;Run As... &lt;/b&gt;and choose &lt;b&gt;Java Application&lt;/b&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdQaNTvIUFXGQu5Wqf_wZjS5IXEf9_0wCV7IHtpkLh3XVUlotnFnsVmS31u5yMrfDuyBHA-u5_qBM33ZHl8cDsJw0m3YfscVRsD0uIsPOfuTbSaUnJ6B16q5Vwq6Plh1m433XCaiHYLbE/s1600/JAVA+Swing5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdQaNTvIUFXGQu5Wqf_wZjS5IXEf9_0wCV7IHtpkLh3XVUlotnFnsVmS31u5yMrfDuyBHA-u5_qBM33ZHl8cDsJw0m3YfscVRsD0uIsPOfuTbSaUnJ6B16q5Vwq6Plh1m433XCaiHYLbE/s320/JAVA+Swing5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
Our result should look something like this...&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
There you have it... your first JAVA swing application..... Hope you enjoy another one of my tutorials...&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
if you have any questions or suggestions don't be shy to comment or email me.... :D&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxH1pIqCKFBhPoyMuyRhGEvDpXeQdS81el06heBcEjhMrb0K1aWl8JyJUBn8YtmgdJgIoW6Mk6iYLyGiPFSTk6THRk0CRE6ZWkx9UN8W5A5tB3NeuVMWRslHOQwsjFl3LYfN3yWk641-s/s72-c/How+to+be+a+JAVA2.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Quick and Easy JAVA Applet Tutorial</title><link>http://javacrib.blogspot.com/2010/10/quick-and-easy-java-applet-tutorial.html</link><category>applet</category><category>eclipse</category><category>guide</category><category>IDE</category><category>java</category><category>tutorial</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 3 Oct 2010 02:14:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-3275464070981505228</guid><description>&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: medium;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Want to get started on developing JAVA applets? These few quick and easy steps can help you get going in no time.&lt;/span&gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;If you are still not familiar on developing JAVA applications.&lt;a href="http://javacrib.blogspot.com/2010/10/how-to-be-java-programmer.html"&gt; Click here to get you started on JAVA.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;In this tutorial we will be making use of the Eclipse IDE(Integrated Development Environment). If you do not know eclipse yet start with this tutorial &lt;a href="http://javacrib.blogspot.com/2010/10/how-to-be-java-programmer.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;First step in making a JAVA Applet is to make a new JAVA project in your Eclipse IDE. &lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s1600/How+to+be+a+JAVA8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s400/How+to+be+a+JAVA8.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Click on &lt;b&gt;File&lt;/b&gt;... then select &lt;b&gt;New... &lt;/b&gt;then click on &lt;b&gt;Java Project&lt;/b&gt;....&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jhDIXXlxHMu2ULIF4jchznLV41Z5HgK508lt6L7P3lJPblVyKJOQ2GC3Vj2DaoehyK135GiuM5Rdmtkth2yXMApHkyaFAnqzKcpiDff2atq05eaAAyi2cpCMyeLnwMJAjtiSWJkQnWU/s1600/How+to+be+a+JAVA9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="259" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jhDIXXlxHMu2ULIF4jchznLV41Z5HgK508lt6L7P3lJPblVyKJOQ2GC3Vj2DaoehyK135GiuM5Rdmtkth2yXMApHkyaFAnqzKcpiDff2atq05eaAAyi2cpCMyeLnwMJAjtiSWJkQnWU/s400/How+to+be+a+JAVA9.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Choose a Project Name and click &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Finish...&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-size: small;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC_0rPFqN1DOIPyoI7Zebj-4V8LCD6rxut09cPRDSx4TxW0q2P_XogQz_v3JTtUqb6ZhZM4IwzwGEqP-wJ3FoHgW9-zItDNkIui_LNT-65bLikCdDPslUlizWjLDnmuWcdCKLYzubClQY/s1600/How+to+be+a+JAVA1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC_0rPFqN1DOIPyoI7Zebj-4V8LCD6rxut09cPRDSx4TxW0q2P_XogQz_v3JTtUqb6ZhZM4IwzwGEqP-wJ3FoHgW9-zItDNkIui_LNT-65bLikCdDPslUlizWjLDnmuWcdCKLYzubClQY/s400/How+to+be+a+JAVA1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Now you have your project... we can start coding... :D&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxH1pIqCKFBhPoyMuyRhGEvDpXeQdS81el06heBcEjhMrb0K1aWl8JyJUBn8YtmgdJgIoW6Mk6iYLyGiPFSTk6THRk0CRE6ZWkx9UN8W5A5tB3NeuVMWRslHOQwsjFl3LYfN3yWk641-s/s1600/How+to+be+a+JAVA2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxH1pIqCKFBhPoyMuyRhGEvDpXeQdS81el06heBcEjhMrb0K1aWl8JyJUBn8YtmgdJgIoW6Mk6iYLyGiPFSTk6THRk0CRE6ZWkx9UN8W5A5tB3NeuVMWRslHOQwsjFl3LYfN3yWk641-s/s400/How+to+be+a+JAVA2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Right click on the &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;src folder&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt; and choose &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;New... &lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;then choose &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Class&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiepEjHBEeA2-tSJgfsYpjaeU8p8qvZTCriVz0gxfTLkZv50gEB4HW4_-xaEGZOjd-zTxxNbQe7avYD5E0QF9F13jbBRfTapsOGXbtGdTChh4ZySrOIPzp6MUhyphenhyphenVbGVEf6Psm4eM_7VR4I/s1600/JAVA+Applet1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="233" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiepEjHBEeA2-tSJgfsYpjaeU8p8qvZTCriVz0gxfTLkZv50gEB4HW4_-xaEGZOjd-zTxxNbQe7avYD5E0QF9F13jbBRfTapsOGXbtGdTChh4ZySrOIPzp6MUhyphenhyphenVbGVEf6Psm4eM_7VR4I/s400/JAVA+Applet1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;then choose your Class Name and Package name. In our case use &lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Package -&amp;gt; com.wfdb&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Class Name -&amp;gt; HelloApplet&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;then click on &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Finish...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Ue4VIE8QoWY5puXSdAd1GPYQMIkRg6LY8xispLhjBIANuwuHmFVW-NL3X1vqXmliRS4owSgjc5tinHcAqR7ARGfn1_1-K9-45MEnrvvqlCiPymcLqUivv8ac2Lzq-Trmaqi7yX23mYo/s1600/JAVA+Applet2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Ue4VIE8QoWY5puXSdAd1GPYQMIkRg6LY8xispLhjBIANuwuHmFVW-NL3X1vqXmliRS4owSgjc5tinHcAqR7ARGfn1_1-K9-45MEnrvvqlCiPymcLqUivv8ac2Lzq-Trmaqi7yX23mYo/s400/JAVA+Applet2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Our new Class file will now look something like this...&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
Now its time to code our Java Applet&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
First we have to extend our HelloApplet Class by adding&amp;nbsp;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;i&gt;&amp;nbsp;public class HelloApplet&lt;b&gt; extends Applet&lt;/b&gt; {&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
This means we are extending the functionalities of the &lt;b&gt;Applet&lt;/b&gt; &lt;b&gt;Class &lt;/b&gt;to our HelloApplet Class&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
Next we add some functionality to our applet...&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
We add a simple paint method which&amp;nbsp;overrides&amp;nbsp;the method from the &lt;b&gt;Applet Class &lt;/b&gt;and use it to draw a String&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public void paint(Graphics g) {&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g.drawString("Hello World", 25, 25);&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;div align="LEFT" style="display: inline !important; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;i&gt;g.drawString("Your Text Here", x, y); &amp;lt;--&amp;nbsp;&lt;/i&gt;This method paints a Text on x and y coordinates&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;b&gt;&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;/div&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
Next is we add the imports at the top of our HelloApplet Class&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; import java.applet.Applet;&lt;/i&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; import java.awt.Graphics;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDf_n9AzIvtSoiPxER1SWf3q_blLn_7EJhijFaJYr-OgIpUNcPhAxgm4V4WFsXskzJpfnLr0fFH33HYcD2sSsjAYuNgHKmUhS3UihVBPyWkp7mzKd2taPpa1r9HqckQA33ZIFtw0uKqvg/s1600/JAVA+Applet3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDf_n9AzIvtSoiPxER1SWf3q_blLn_7EJhijFaJYr-OgIpUNcPhAxgm4V4WFsXskzJpfnLr0fFH33HYcD2sSsjAYuNgHKmUhS3UihVBPyWkp7mzKd2taPpa1r9HqckQA33ZIFtw0uKqvg/s400/JAVA+Applet3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
Our code should now look something similar to this&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Now to run our code...&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT-gWBQm3lFEAV7So4579tZQ1WUs7VGgmk2glGFj3BzztAZdxZJMr1hs9sO6B4deXkjN4bfDYP0wwvZJIw2k_7c3e7QYgmlu4B7dEogi5Rh3WTHgau8uG-0x-GpOSlRcZzyxbMKGN66IA/s1600/JAVA+Applet4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT-gWBQm3lFEAV7So4579tZQ1WUs7VGgmk2glGFj3BzztAZdxZJMr1hs9sO6B4deXkjN4bfDYP0wwvZJIw2k_7c3e7QYgmlu4B7dEogi5Rh3WTHgau8uG-0x-GpOSlRcZzyxbMKGN66IA/s400/JAVA+Applet4.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Right click on our HelloApplet.java Class file from our Project choose &lt;b&gt;Run As... &lt;/b&gt;and choose &lt;b&gt;Java Applet...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirCkv1a0Ir_ZXGHnqtUucbZQygKxYd7y7XKWxau66ydlHmcCzcNJUmUvbD4xYafCL9QcE_MXPcow5Xfjs9iCqlbpkWZKe0LJc3FKyF16GIM-maJx6ahTnu-nPTWty-RvxJXWwGoezTMBg/s1600/JAVA+Applet5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirCkv1a0Ir_ZXGHnqtUucbZQygKxYd7y7XKWxau66ydlHmcCzcNJUmUvbD4xYafCL9QcE_MXPcow5Xfjs9iCqlbpkWZKe0LJc3FKyF16GIM-maJx6ahTnu-nPTWty-RvxJXWwGoezTMBg/s320/JAVA+Applet5.jpg" width="246" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;We should now see a small window pop up and display out Text...&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;There you have it....&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;You made your first Java Applet...&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Keep on checking my blog for new Java Applet Tutorials.... :D&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s72-c/How+to+be+a+JAVA8.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How To Be a Java Programmer</title><link>http://javacrib.blogspot.com/2010/10/how-to-be-java-programmer.html</link><category>eclipse</category><category>guide</category><category>IDE</category><category>java</category><category>JDK</category><category>netbeans</category><category>programmer</category><category>tutorial</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 2 Oct 2010 18:49:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-3235789196902261303</guid><description>&lt;div align="CENTER" style="margin-bottom: 0in;"&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Do you want to be a Java Programmer? Then first you have to be equipped with the tools nessesary for java programming. First thing you will need is a computer (Duh!) , the JDK (JAVA Development Kit), and a good old IDE (Integrated Development Environment)&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Programming in java, you could use any of your favorite notepad editor and hack away your code, but in my experience that would be a very long error prone process. So if you want to be a professional Java programmer you will have to choose your tools wisely. My favorite IDE (Integrated Development Environment) for java would be the Eclipse IDE for Java.&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;There are a lot of Java IDE's out there, but i will list only 3 of the most famous ones:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.jetbrains.com/idea/"&gt;Intellij IDEA&lt;/a&gt; - i have not used it but it is very famous and widely used. You  can get it &lt;a href="http://www.jetbrains.com/idea/"&gt;here&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://netbeans.org/"&gt;Netbeans  IDE&lt;/a&gt; – another very good IDE, with very good UI designer. I like  using it but my favorite is Eclipse. The best thing about them is  they are both free. You can get it &lt;a href="http://netbeans.org/"&gt;here&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.eclipse.org/"&gt;Eclipse  IDE&lt;/a&gt; – a customizable and portable IDE, just unpack it to any  folder and you are ready to go. get it &lt;a href="http://www.eclipse.org/"&gt;here&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Well, before we delve into the mysterious world of java, I would like to introduce it to you with a simple “Hello World” tutorial. For this tutorial we will be using my favorite IDE Eclipse.&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;First Step is to setup our JDK and our IDE.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Download and install the JDK from &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;here.&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;also, download the &lt;a href="http://www.eclipse.org/"&gt;Eclipse IDE&lt;/a&gt;&amp;nbsp;and unpack it to the folder of your choice.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Running Eclipse for the first time it will ask you to choose a workplace. Once Eclipse is running First thing we have to do is click make a new project.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s1600/How+to+be+a+JAVA8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s400/How+to+be+a+JAVA8.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Click on &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;File&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;... then select &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;New... &lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;then click on &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Java Project&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jhDIXXlxHMu2ULIF4jchznLV41Z5HgK508lt6L7P3lJPblVyKJOQ2GC3Vj2DaoehyK135GiuM5Rdmtkth2yXMApHkyaFAnqzKcpiDff2atq05eaAAyi2cpCMyeLnwMJAjtiSWJkQnWU/s1600/How+to+be+a+JAVA9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jhDIXXlxHMu2ULIF4jchznLV41Z5HgK508lt6L7P3lJPblVyKJOQ2GC3Vj2DaoehyK135GiuM5Rdmtkth2yXMApHkyaFAnqzKcpiDff2atq05eaAAyi2cpCMyeLnwMJAjtiSWJkQnWU/s400/How+to+be+a+JAVA9.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Choose a Project Name and click &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Finish...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC_0rPFqN1DOIPyoI7Zebj-4V8LCD6rxut09cPRDSx4TxW0q2P_XogQz_v3JTtUqb6ZhZM4IwzwGEqP-wJ3FoHgW9-zItDNkIui_LNT-65bLikCdDPslUlizWjLDnmuWcdCKLYzubClQY/s1600/How+to+be+a+JAVA1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC_0rPFqN1DOIPyoI7Zebj-4V8LCD6rxut09cPRDSx4TxW0q2P_XogQz_v3JTtUqb6ZhZM4IwzwGEqP-wJ3FoHgW9-zItDNkIui_LNT-65bLikCdDPslUlizWjLDnmuWcdCKLYzubClQY/s400/How+to+be+a+JAVA1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Now you have your project... we can start coding... :D&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbO48Vgj1kMt1RAIPq4tQpT_95oTXRO0RxFA1kPBRVCjzT7G2xf46LWDafcax21NwBkcnpSQWf3frEb64E_vYFbffhWR7JZgwEOi462f4rdYOBAF2TRlTBsI3_WOW9e9xA1bEo3PKzkMg/s1600/How+to+be+a+JAVA2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbO48Vgj1kMt1RAIPq4tQpT_95oTXRO0RxFA1kPBRVCjzT7G2xf46LWDafcax21NwBkcnpSQWf3frEb64E_vYFbffhWR7JZgwEOi462f4rdYOBAF2TRlTBsI3_WOW9e9xA1bEo3PKzkMg/s400/How+to+be+a+JAVA2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Right click on the &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;src folder&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt; and choose &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;New... &lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;then choose &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Class&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAXTSou13_QHdOICNJgYJOtkgIRaCUYHuv_gcChM81Fu0jA7JkCN7zZ9MC8I8Aw0qOyy81SLuYGNSHvYX3rabYaY7nrptpSOVmQDYasTwfxenXLX4dmdGAOPRyKTecJ9TRra1sVDTajJs/s1600/How+to+be+a+JAVA3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAXTSou13_QHdOICNJgYJOtkgIRaCUYHuv_gcChM81Fu0jA7JkCN7zZ9MC8I8Aw0qOyy81SLuYGNSHvYX3rabYaY7nrptpSOVmQDYasTwfxenXLX4dmdGAOPRyKTecJ9TRra1sVDTajJs/s400/How+to+be+a+JAVA3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;then choose your Class Name and Package name. In our case use &lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Package -&amp;gt; com.wfdb&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Class Name -&amp;gt; HelloWorld&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;then click on &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Finish...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvPfo9h8pfHIsYblAhm0jyWEvhjgIr1K2Ww9tEb6j03b-IjMa7QGo_uFvPceytjda0-ufrZclmocyppFnn_yOT9g8ldPW9g_marGe88LlcEP4BMrlSOw4LqL00NJQmm1znmO_fTq4iBnE/s1600/How+to+be+a+JAVA4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvPfo9h8pfHIsYblAhm0jyWEvhjgIr1K2Ww9tEb6j03b-IjMa7QGo_uFvPceytjda0-ufrZclmocyppFnn_yOT9g8ldPW9g_marGe88LlcEP4BMrlSOw4LqL00NJQmm1znmO_fTq4iBnE/s400/How+to+be+a+JAVA4.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Our new Class file will now look something like this...&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4TsaM4FU1z_N6dGUxvbXkRwCqCzrMpx3nqET-nhOMQR4XBEfeQnLEGj9H4RNSwQp_CeyQbFNhfAZv16Pxb7k8Bt56Lo5gl6EvLdln60P7w7qTYtogQ51T6Xdj3OE9aaklKsYkXPbuWbU/s1600/How+to+be+a+JAVA5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="152" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4TsaM4FU1z_N6dGUxvbXkRwCqCzrMpx3nqET-nhOMQR4XBEfeQnLEGj9H4RNSwQp_CeyQbFNhfAZv16Pxb7k8Bt56Lo5gl6EvLdln60P7w7qTYtogQ51T6Xdj3OE9aaklKsYkXPbuWbU/s400/How+to+be+a+JAVA5.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;Now we add code to our Class...  &lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="font-weight: normal; margin-bottom: 0in;"&gt;
&lt;span style="font-size: small;"&gt;&amp;lt;code&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Courier New', monospace;"&gt;&lt;span style="font-size: x-small;"&gt; public static void main(String[] args){&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Courier New', monospace;"&gt;&lt;span style="font-size: x-small;"&gt;  System.out.println("Hello World!!!");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Courier New', monospace;"&gt;&lt;span style="font-size: x-small;"&gt; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;lt;/code&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;public static void main(String[] args) { &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;// your code here&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;this piece of code tells java that our program will start executing from this part of the code...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;System.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;out&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;println&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;"Your Text Here"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;this piece of code tells java to print a piece of string out to our console...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7BP2aWhQVOfMKd5QdyPyz0zRxmuaut3GliDBwsCZ1XMbDvxa5Yt12LCj4MRt8G1TziDVvEDLAt_vCGPcuVeXZa-Zk7M5EFndmOfD3bfJI7pgHVVmnyRLJbOqDeLoFySDNqWcDVE_ogWY/s1600/How+to+be+a+JAVA6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7BP2aWhQVOfMKd5QdyPyz0zRxmuaut3GliDBwsCZ1XMbDvxa5Yt12LCj4MRt8G1TziDVvEDLAt_vCGPcuVeXZa-Zk7M5EFndmOfD3bfJI7pgHVVmnyRLJbOqDeLoFySDNqWcDVE_ogWY/s400/How+to+be+a+JAVA6.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Now we run the code...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Right click on our HelloWorld.java class file from our project and click on &lt;b&gt;Run As&lt;/b&gt;... And choose&lt;b&gt; Java Application...&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6OBRL_XaW5804JlkP9xWIzBAsbo6pG90y8ELqViHTY6eKZjed0B0xjvGgkIeQFuMY2w8CAP3WnacafRniTd8ZSjSIQu8e7nSNCuAsXy0whJ54AHnduU-ONAGA4hI_-aJ2R7yNlskCeYY/s1600/How+to+be+a+JAVA7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6OBRL_XaW5804JlkP9xWIzBAsbo6pG90y8ELqViHTY6eKZjed0B0xjvGgkIeQFuMY2w8CAP3WnacafRniTd8ZSjSIQu8e7nSNCuAsXy0whJ54AHnduU-ONAGA4hI_-aJ2R7yNlskCeYY/s400/How+to+be+a+JAVA7.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Our result should look like this....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Now, there you have it. Your very first Java Program.... &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;Welcome to the wonderful world of java... &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;span style="font-size: small;"&gt;More advanced tutotials soon to come... :D&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVipONWbIlkpyMpcuBllOSSmrArWz6FUG9PpHnqbVkR5j0VivNtR7uW1VXFUbh2gzRRCF48z2zdz2QWZJgUgPbjC2WCpl6LRbTbUE1NnjT7J2G2PsRHQR-8ay76gfEANtZhlIyt8fWLkY/s72-c/How+to+be+a+JAVA8.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><title>Facebook Backyard Monsters Game Tips and Review</title><link>http://javacrib.blogspot.com/2010/10/facebook-backyard-monsters-game-tips.html</link><category>backyard monsters</category><category>base</category><category>defense</category><category>game</category><category>guide</category><category>monsters</category><category>review</category><category>strategy</category><category>tips</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 2 Oct 2010 01:04:00 +0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5542344770850463352.post-1344509269574513342</guid><description>&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtbIkFleQiWwbrVIKNf30i3OgnzpWMGNuTkQOW_YbvulDKd97c6qSMJmbzKUFfnS1TkZKE7ACR56Afc6phc45ZHTE8xcRGuKdAyBWXO1BHQCyZzyGulGJZiwtKcwNHuyrQJv5ShS_idx4/s1600/Backyard+monsters.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtbIkFleQiWwbrVIKNf30i3OgnzpWMGNuTkQOW_YbvulDKd97c6qSMJmbzKUFfnS1TkZKE7ACR56Afc6phc45ZHTE8xcRGuKdAyBWXO1BHQCyZzyGulGJZiwtKcwNHuyrQJv5ShS_idx4/s320/Backyard+monsters.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
Another addicting casual game for facebook involving cute monsters and base defense.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
While Browsing the internet, and reading facebook comments and updates i noticed an AD for a facebook game with a cute little green monster. I got curious and said to myself... What the heck try it out... I might get some idea for a game i am trying to make.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
First you will need to set up your base. The game has nice tutorials as you go along doing quests and building your base while getting rewards for doing so. Starting out you will have a 13 days protection from being attacked by others players which gives you ample time to setup your base and get ready to attacking other players.  &lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b&gt;Using your 13 days protection to become a monster base&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
First step is to get as much workers for your initial shinys from the game. You will have to wait until you get a store, then use up as much shiny you have to buy workers. Workers will be able to help you build your base, the more workers you have the more you can use to build simultaneously. Next Step is to get as much resources and storage as fast as posible. What is the use of workers without resources to build? Because you are protected for 13 days, you should concentrate on upgrading your resuorces and storage, you need not worry about other players attacking except for some wild monsters which a few sniper towers can handle. So build up your resources and always upgrade your Town Hall because you will have more resources. Getting to the end of your protection status you will have maxed Town Hall and a lot of resources to back you up in you hunt to destroy other players bases.  &lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
Backyard Monsters is another addicting Facebook game. It is fun and has nice graphics with cute monsters. I recommend it to casual gamers who like playing strategy and tower defence games. And the best part is its free like all of facebook games. ENJOY!! :D&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
play the game by clicking this &lt;a href="http://apps.facebook.com/backyardmonsters/" target="_blank"&gt;link...&lt;/a&gt;&amp;nbsp;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtbIkFleQiWwbrVIKNf30i3OgnzpWMGNuTkQOW_YbvulDKd97c6qSMJmbzKUFfnS1TkZKE7ACR56Afc6phc45ZHTE8xcRGuKdAyBWXO1BHQCyZzyGulGJZiwtKcwNHuyrQJv5ShS_idx4/s72-c/Backyard+monsters.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item></channel></rss>