<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-2520840836122978496</atom:id><lastBuildDate>Fri, 01 Nov 2024 07:19:41 +0000</lastBuildDate><category>test</category><category>Java</category><title>Code Calisthenics</title><description>A blog about Java and more</description><link>http://billtsagas.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2520840836122978496.post-7980266556717303377</guid><pubDate>Thu, 29 Nov 2012 14:00:00 +0000</pubDate><atom:updated>2013-02-21T23:42:07.642-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">test</category><title>Test Post</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Test post.&lt;a href=&quot;http://www.youtube.com/&quot; target=&quot;_blank&quot;&gt;youtube&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://docs.oracle.com/javase/6/docs/api/javax/swing/JProgressBar.html&quot; target=&quot;_blank&quot;&gt;JProgressBar&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
sdsdfafafafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjIF1JKncLkVuCFr-Il726OFN52kcS1tsBO_gHiuLyYTRTvzHvSRqoZV-jGk-bKfsfHRgGKYpyxsz-ALa_5FFSwsPi272kagmaASLgyZ4gDuGsNF-SuHO0FUStZEkqTQXn6uTNhcP3uEM/s1600/tumblr_leihkx4XdH1qfaek9o1_500_large.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjIF1JKncLkVuCFr-Il726OFN52kcS1tsBO_gHiuLyYTRTvzHvSRqoZV-jGk-bKfsfHRgGKYpyxsz-ALa_5FFSwsPi272kagmaASLgyZ4gDuGsNF-SuHO0FUStZEkqTQXn6uTNhcP3uEM/s1600/tumblr_leihkx4XdH1qfaek9o1_500_large.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a class=&quot;button blue&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=2520840836122978496#&quot;&gt;Button&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;code&gt;agagagagaga&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;afafafafwfaf&amp;nbsp;&lt;/code&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
</description><link>http://billtsagas.blogspot.com/2012/11/test-post.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjIF1JKncLkVuCFr-Il726OFN52kcS1tsBO_gHiuLyYTRTvzHvSRqoZV-jGk-bKfsfHRgGKYpyxsz-ALa_5FFSwsPi272kagmaASLgyZ4gDuGsNF-SuHO0FUStZEkqTQXn6uTNhcP3uEM/s72-c/tumblr_leihkx4XdH1qfaek9o1_500_large.jpg" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2520840836122978496.post-9116869285428916443</guid><pubDate>Mon, 26 Nov 2012 20:09:00 +0000</pubDate><atom:updated>2013-02-21T23:56:26.306-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">test</category><title>Hello World!</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hello everyone!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Hello there!How are you? I&#39;m fine thanks! Thanks I owe you one. I like cupcakes! Yeah, I do! I like drawing and painting and programming and exercising! Yeah, I do!!!&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;input align=&quot;left&quot; onclick=&quot;startApplet()&quot; type=&quot;button&quot; value=&quot;Start Applet&quot; /&gt;&lt;/div&gt;
&lt;div id=&quot;appletplace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://billtsagas.blogspot.com/2012/11/hello-world.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2520840836122978496.post-7554064743393721919</guid><pubDate>Sun, 25 Nov 2012 20:35:00 +0000</pubDate><atom:updated>2013-02-22T00:04:00.750-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java</category><title>Spice Up Your GUI: Using Progress Bars in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
Welcome&lt;/h1&gt;
&lt;div&gt;
Hello and welcome to my blog! Here, we&#39;re gonna talk mainly about (guess what) Java programming and whatever other topic comes up. We&#39;re gonna start with the &quot;Spice Up Your GUI&quot; series, which is a series about enhancing your applications&#39; user interface, a topic of great importance in my opinion, as personal computers and cellphones are becoming more and more powerful, allowing for prettier (and prettier) user interfaces. We&#39;re gonna start off with the basics, like progress bars, tooltips, different look&amp;amp;amp;feels, custom painting etc., and then we&#39;re gonna move on to more advanced stuff. In between, we will explore other topics of Java as well, and maybe topics not related to programming at all -&amp;nbsp;I am assuming that you know the basics of Java, as well as the very basics of Swing, and have created simple GUI-oriented applications before.&lt;br /&gt;
[paragraph]So, what better way to start this, than with a good prologue?&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Interactivity is Key&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;First of all, let&#39;s talk about interactivity. A good practice in GUI application development is to ensure that the program is interacting with the user at all times. We want to develop our application with the end user in mind. At the end of the day, it&#39;s up to the user to favor your app over another, right? &amp;nbsp;So for that, let&#39;s imagine the users of your application as greedy, overgrown babies. They demand that your app works perfectly and is responsive, and at the same time, holds their hands during the whole process.&amp;nbsp;It should let the users know what each button does, as well as what it is doing &lt;b&gt;at all times&lt;/b&gt;&amp;nbsp;(i.e. its status).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Get on with it!&lt;/span&gt;&lt;/h1&gt;
Ok ok. Time to talk about progress bars. We all know them and we all have seen them. Hell, some of us might have used one in the past.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Progress bars are one of the great ways of enhancing your application&#39;s GUI and letting the user know about the progress of an executing task, (e.g. downloading a file from the Internet or loading a level in a game). It is especially useful in lengthy tasks, where you want to know the exact percentage of the executing task, but it can also be used&lt;/span&gt;&amp;nbsp;in&amp;nbsp;&lt;i&gt;indeterminate mode&lt;/i&gt;, meaning that it doesn&#39;t show the progress percentage.&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;But how do you create a progress bar in Java?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://docs.oracle.com/javase/tutorial/figures/uiswing/components/progressbar.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://docs.oracle.com/javase/tutorial/figures/uiswing/components/progressbar.png&quot; title=&quot;Default progress bar&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Default progress bar&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://docs.oracle.com/javase/tutorial/figures/uiswing/components/indprogressbar.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://docs.oracle.com/javase/tutorial/figures/uiswing/components/indprogressbar.gif&quot; title=&quot;Progress bar in indeterminate mode&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Progress bar in indeterminate mode&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Thankfully, Java takes care of most of the work for us, by providing us with the&amp;nbsp;&lt;a href=&quot;http://docs.oracle.com/javase/7/docs/api/javax/swing/JProgressBar.html&quot; target=&quot;_blank&quot;&gt;JProgressBar&lt;/a&gt;&amp;nbsp;class. This class extends JComponent, so essentially you can treat it like one in your program. This means that you can add a JProgressBar to a JPanel for instance just any other swing component.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;JProgressBar bar = new JProgressBar();
frame.add(bar, BorderLayout.SOUTH);
bar.setValue(50);    // Sets the bar at 50%.&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush:java&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
One apple each day!
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;h1&gt;
Interactivity is Key&lt;/h1&gt;
&lt;h2&gt;
Interactivity is Key&lt;/h2&gt;
&lt;h3&gt;
Interactivity is Key&lt;/h3&gt;
&lt;h4&gt;
Interactivity is Key&lt;/h4&gt;
&lt;/div&gt;
</description><link>http://billtsagas.blogspot.com/2012/11/spice-up-your-gui-using-progress-bars.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item></channel></rss>