<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-33171646</id><updated>2012-01-22T19:12:19.269-08:00</updated><category term='Blogger'/><title type='text'>The Paradigm Shift</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33171646.post-115925072016595682</id><published>2006-09-25T23:02:00.000-07:00</published><updated>2007-01-19T17:53:08.685-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><title type='text'>Blogger Categories and Beta Blogger</title><content type='html'>When are we going to be able to switch our existing blogs over to the new beta-blogger type blogs? I now have so many posts that I can't easily organize them.  I even made &lt;a href="http://mycodeblog.blogspot.com/"&gt;a new blog&lt;/a&gt; to start organizing my posts with the Beta Blogger Categories feature.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115925072016595682?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115925072016595682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115925072016595682' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115925072016595682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115925072016595682'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/blogger-categories-and-beta-blogger.html' title='Blogger Categories and Beta Blogger'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115903947822808182</id><published>2006-09-23T12:24:00.000-07:00</published><updated>2006-12-22T01:18:41.110-08:00</updated><title type='text'>Marilyn Monroe - Death By Psychiatry?</title><content type='html'>On the CCHR website there is a section devoted to artists.  As I am an artist this was struck home to me.  Artists and succesful people are often found surrounded by "professionals" in the field of mental health.&lt;br /&gt;&lt;br /&gt;I've heard many stories about what  happened to Marilyn Monroe but this, from CCHR's website makes the most sense.  Here is an excerpt:&lt;br /&gt;&lt;blockquote&gt;"In 1960, Monroe saw psychiatrist Ralph Greenson, whose control over her was swift, severing all her close relationships. By 1962, she realized—too late—that she must "disconnect from Greenson." After spending six hours with him, she was found dead of a drug overdose. In the seven years prior to psychiatry’s influence, Monroe had made 23 movies. In the seven years of her psychiatric "care," she only made six films."&lt;br /&gt;&lt;/blockquote&gt;Check out the &lt;a href="http://www.cchr.org/index.cfm/5304"&gt;Citizen's Commission on Human Rights&lt;/a&gt; for more information on other famous artists whose lives have been destroyed by Psychiatry in the name of help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115903947822808182?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.cchr.org/index.cfm/5324' title='Marilyn Monroe - Death By Psychiatry?'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115903947822808182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115903947822808182' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115903947822808182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115903947822808182'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/marilyn-monroe-death-by-psychiatry_23.html' title='Marilyn Monroe - Death By Psychiatry?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115877349088658221</id><published>2006-09-20T10:30:00.000-07:00</published><updated>2006-09-21T08:46:20.116-07:00</updated><title type='text'>How to Close a Swing JFrame Without Exiting?</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I have a main JFrame and a sub JFrame that opens based on a double click event on a JTable.  This second JFrame has details about the record double clicked.  When trying to close the second JFrame the entire application closes.  I just want the sub JFrame to close and return you to the original JFrame.   Let's see what google says about this...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.google.com/search?hs=3ZP&amp;hl=en&amp;amp;amp;amp;lr=&amp;client=firefox-a&amp;amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;q=How+to+Close+a+Swing+JFrame+Without+Exiting%3F&amp;amp;btnG=Search"&gt;Google Search&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;From this I found a simple definition of the close function.  &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" aiotitle="Here it is." href="http://mindprod.com/jgloss/close.html"&gt;Here it is. &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I want to close my JFrame either by the user clicking on the "X" or when the user clicks on the "Save" button.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The simplest way to do this is to add one of the four to your JFrame code: &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre class="java"  style="font-family:trebuchet ms;"&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;&lt;span class="keyword"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="semicolon"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span class="keyword"&gt;this&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jmethod"&gt;setDefaultCloseOperation &lt;/span&gt;&lt;span class="fence1"&gt;(&lt;/span&gt; &lt;span class="jclass"&gt;JFrame&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jconstant"&gt;DISPOSE_ON_CLOSE &lt;/span&gt;&lt;span class="fence1"&gt;)&lt;/span&gt;&lt;span class="semicolon"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class="keyword"&gt;this&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jmethod"&gt;setDefaultCloseOperation &lt;/span&gt;&lt;span class="fence1"&gt;(&lt;/span&gt; &lt;span class="jclass"&gt;JFrame&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jconstant"&gt;HIDE_ON_CLOSE &lt;/span&gt;&lt;span class="fence1"&gt;)&lt;/span&gt;&lt;span class="semicolon"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class="keyword"&gt;this&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jmethod"&gt;setDefaultCloseOperation &lt;/span&gt;&lt;span class="fence1"&gt;(&lt;/span&gt; &lt;span class="jclass"&gt;JFrame&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jconstant"&gt;EXIT_ON_CLOSE &lt;/span&gt;&lt;span class="fence1"&gt;)&lt;/span&gt;&lt;span class="semicolon"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class="keyword"&gt;this&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jmethod"&gt;setDefaultCloseOperation &lt;/span&gt;&lt;span class="fence1"&gt;(&lt;/span&gt; &lt;span class="jclass"&gt;JFrame&lt;/span&gt;&lt;span class="operator"&gt;.&lt;/span&gt;&lt;span class="jconstant"&gt;DO_NOTHING_ON_CLOSE &lt;/span&gt;&lt;span class="fence1"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="semicolon"&gt;&lt;span style="font-family:courier new;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115877349088658221?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115877349088658221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115877349088658221' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115877349088658221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115877349088658221'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/how-to-close-swing-jframe-without.html' title='How to Close a Swing JFrame Without Exiting?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115853568070878138</id><published>2006-09-17T16:27:00.000-07:00</published><updated>2006-11-23T10:14:11.490-08:00</updated><title type='text'>How to Create Double-Click Event on a JTable in Swing?</title><content type='html'>I have created a basic application with buttons, combo boxes a JTable with a JScrollPane and want to have a double-click event on my JTable which opens an "Edit Detail" screen that pulls up the record's data and allows data to be filled in and then saved.&lt;br /&gt;&lt;br /&gt;Here is how to set up a double-click event that opens a new form:&lt;br /&gt;&lt;br /&gt;1) First set up Mouse Listener on your JTable:&lt;br /&gt;&lt;i&gt;&lt;font&gt;&lt;i&gt;&lt;span style=";font-family:Courier;font-size:100%;"  &gt;&lt;pre&gt;&lt;span style="font-family:courier new;"&gt;  myJTable.addMouseListener(new MouseAdapter() {&lt;/span&gt;&lt;span style="font-family:mon;"&gt;&lt;br /&gt;   &lt;/span&gt;public void mouseClicked(MouseEvent e) {&lt;span style="font-family:mon;"&gt;&lt;br /&gt;      &lt;/span&gt;if (e.getClickCount() == 2) {&lt;span style="font-family:mon;"&gt;&lt;br /&gt;         &lt;/span&gt;JTable target = (JTable)e.getSource();&lt;span style="font-family:mon;"&gt;&lt;br /&gt;         &lt;/span&gt;int row = target.getSelectedRow();&lt;br /&gt;         &lt;span style="font-family:mon;"&gt;&lt;/span&gt;&lt;span style="font-family:mon;"&gt;&lt;/span&gt;int column = target.getSelectedColumn();&lt;br /&gt;         // do some action&lt;br /&gt;&lt;span style="font-family:mon;"&gt;&lt;/span&gt;&lt;span style="font-family:mon;"&gt;         &lt;/span&gt;}&lt;br /&gt;   }&lt;br /&gt;});&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/i&gt;&lt;font&gt;&lt;font&gt;This will give you the row and column that was double clicked.&lt;br /&gt;&lt;br /&gt;2) You can then use this to get the value of that row's ID and open a new form and populate it with this record's data.   Here is how you would open a new form&lt;br /&gt;&lt;i&gt;&lt;font&gt;&lt;i&gt;&lt;font&gt;&lt;i&gt;&lt;font&gt;&lt;i&gt;&lt;span style=";font-family:Courier;font-size:100%;"  &gt;&lt;pre&gt;&lt;span style="font-family:courier new;"&gt;   JFrame newFrame = new JFrame();&lt;br /&gt;  newFrame.setTitle("Detail Screen");&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;  newFrame.setVisible(true);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:mon;"&gt;&lt;/span&gt;&lt;span style="font-family:mon;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/i&gt;&lt;font&gt;&lt;font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;The below link was useful in working out how to do this and has many other helpful items:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.esus.com/javaindex/j2se/jdk1.2/javaxswing/editableatomiccontrols/jtable/jtabledetectdoubleclick.html"&gt;Detect Double Click&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115853568070878138?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115853568070878138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115853568070878138' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115853568070878138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115853568070878138'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/how-to-create-double-click-event-on.html' title='How to Create Double-Click Event on a JTable in Swing?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115839210713358640</id><published>2006-09-16T00:29:00.000-07:00</published><updated>2006-09-21T21:07:50.050-07:00</updated><title type='text'>Attack of the Killer Spinach</title><content type='html'>Over 10 states are now reporting cases of the killer spinach spawning the E. Coli bacteria.  Federal health officials are advising Americans to throw out all the bagged spinach.&lt;br /&gt;&lt;br /&gt;I never had a problem with throwing away spinach personally.  I just wish this news story broke when I was a kid being forced to eat spinach - I would have really milked this one - years of spinach-free adolescence.  &lt;br /&gt;&lt;br /&gt;Has anyone heard any similar stories about brussel sprouts?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115839210713358640?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://cbs2.com/topstories/local_story_258180823.html' title='Attack of the Killer Spinach'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115839210713358640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115839210713358640' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115839210713358640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115839210713358640'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/attack-of-killer-spinach.html' title='Attack of the Killer Spinach'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115836874878857683</id><published>2006-09-15T17:57:00.000-07:00</published><updated>2007-01-16T09:08:20.523-08:00</updated><title type='text'>Refresh a JTable from a JDBC connection</title><content type='html'>I have a Swing application that uses a JTable and JScrollPane to display data from an Access database via a JDBC connection. &lt;br /&gt;&lt;br /&gt;Even though I had properly coded the SQL INSERT statement and the data was loading into my database, the JTable was not refreshing with the new record.   I tried the .revalidate() and the .repaint() methods to no avail.&lt;br /&gt;&lt;br /&gt;Finally, after reading Ben Hendry's &lt;a href="http://wbt.sys-con.com/read/36190.htm"&gt;Mastering JTable&lt;/a&gt; I was able to sort this out.&lt;br /&gt;&lt;br /&gt;In my JButton ActionListener I added the TableModel.addRow method and inserted the newly inserted records into the JTable as well.  Followed by a .revalidate() and the data properly displayed without even a flicker in my application.&lt;br /&gt;&lt;br /&gt;Moral of the story - always use Model-View-Control (MVC) architecture and separate your view from your data and controls.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115836874878857683?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115836874878857683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115836874878857683' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836874878857683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836874878857683'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/refresh-jtable-from-jdbc-connection.html' title='Refresh a JTable from a JDBC connection'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115836437982982834</id><published>2006-09-15T16:38:00.000-07:00</published><updated>2006-09-15T16:53:03.306-07:00</updated><title type='text'>Mastering the JTable</title><content type='html'>Hunting around the web looking for a way to "refresh" the JTable that is built from a database connection.  I found the Bob Hendry articles which can be seen here.  There are quite informative but don't answer the question in full.  Still looking:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://wbt.sys-con.com/read/36190.htm"&gt;Mastering the JTable&lt;/a&gt;&lt;br /&gt;&lt;a href="http://photos.sys-con.com/story/res/36636/source.html"&gt;Using JTable - part one&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wbt.sys-con.com/read/36848.htm"&gt;Using JTable - part two&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115836437982982834?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://wbt.sys-con.com/read/36190.htm' title='Mastering the JTable'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115836437982982834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115836437982982834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836437982982834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836437982982834'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/mastering-jtable.html' title='Mastering the JTable'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115836110830216841</id><published>2006-09-15T15:56:00.000-07:00</published><updated>2006-12-29T10:27:22.770-08:00</updated><title type='text'>How to Refresh a JTable in a JScrollPane?</title><content type='html'>I have created a Swing application that has a JTable with a JScrollPane that is populated with data from an Access database through a JDBC connection. &lt;br /&gt;&lt;br /&gt;There are fields where you can add data and insert a record to this database.  I am trying to add an event to the JButton so when you click the button and add a new record, that the JTable refreshes and newly queries the data source.&lt;br /&gt;&lt;br /&gt;I've searched for how to handle this and tried the revalidate(), repaint() methods and these don't cause a change.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115836110830216841?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115836110830216841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115836110830216841' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836110830216841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115836110830216841'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/how-to-refresh-jtable-in-jscrollpane.html' title='How to Refresh a JTable in a JScrollPane?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115812928011529066</id><published>2006-09-12T23:33:00.000-07:00</published><updated>2006-09-13T01:03:44.653-07:00</updated><title type='text'>How to Create Directories in Java</title><content type='html'>Here is a link that describes how to create a directory in Java:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.java2s.com/Code/Java/File-Input-Output/mkdirexamples.htm"&gt;Java IO Reference&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115812928011529066?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.java2s.com/Code/Java/File-Input-Output/CopyfilesusingJavaIOAPI.htm' title='How to Create Directories in Java'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115812928011529066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115812928011529066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115812928011529066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115812928011529066'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/how-to-create-directories-in-java.html' title='How to Create Directories in Java'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115810807606153501</id><published>2006-09-12T17:40:00.000-07:00</published><updated>2006-11-03T09:17:28.600-08:00</updated><title type='text'>Java Swing Resource</title><content type='html'>Some great Java Swing resources:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.java-tips.org/java-se-tips"&gt;Java Tips&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java.sun.com/docs/books/tutorial/uiswing/TOC.html"&gt;Java Tutorial&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115810807606153501?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.java-tips.org/java-se-tips/javax.swing/' title='Java Swing Resource'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115810807606153501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115810807606153501' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115810807606153501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115810807606153501'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/java-swing-resource.html' title='Java Swing Resource'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115799936515034042</id><published>2006-09-11T11:29:00.000-07:00</published><updated>2006-09-11T11:29:25.333-07:00</updated><title type='text'>Eclipse Visual Editor vs. Jigloo</title><content type='html'>Ok, I've been using the Eclipse Visual Editor for all of 15 minutes and I am sold.  Up until now, I've been using Cloudgarden's Jigloo free version, yet after getting constantly annoyed by Jigloo's constant modifications to my code, prevention of using builders and the incessant warnings about how you are using the free version and that this can not be used for commercial use, I had it.&lt;br /&gt;&lt;br /&gt;It is much easier to build with the Model View Control (MVC) architecture using the VE tool as opposed to the Jigloo builder.&lt;br /&gt;&lt;br /&gt;Here are some comparisons and reviews of these GUI builder tools:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.eclipse-plugins.info/eclipse/plugin_comments.jsp?id=472&amp;pager.offset=70&amp;amp;firstItem=71"&gt;Jigloo Review&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.fullspan.com/articles/java-gui-builders.html"&gt;Comparison of Java GUI Builders&lt;/a&gt;&lt;br /&gt;&lt;a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=101936"&gt;Comparison with Matisse&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.infoworld.com/article/03/11/18/HNeclipse_1.html"&gt;IBM Giving Away VE Source Code to Eclipse&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115799936515034042?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115799936515034042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115799936515034042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115799936515034042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115799936515034042'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/eclipse-visual-editor-vs-jigloo.html' title='Eclipse Visual Editor vs. Jigloo'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115799686771491550</id><published>2006-09-11T10:45:00.000-07:00</published><updated>2006-09-11T10:47:48.203-07:00</updated><title type='text'>How to Install VE (Visual Editor) in Eclipse</title><content type='html'>I've dabbled with Jigloo and found that Eclipse has its own GUI builder called VE.  This needs the GEF and EMF plugins to work.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.eclipse.org/vep/WebContent/faq.html"&gt;Here is an excellent resource&lt;/a&gt; that answers all the questions I had when getting started with VE, from the installation to how it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115799686771491550?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.eclipse.org/vep/WebContent/faq.html' title='How to Install VE (Visual Editor) in Eclipse'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115799686771491550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115799686771491550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115799686771491550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115799686771491550'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/how-to-install-ve-visual-editor-in.html' title='How to Install VE (Visual Editor) in Eclipse'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115795361351364711</id><published>2006-09-10T22:27:00.000-07:00</published><updated>2006-09-10T22:46:53.696-07:00</updated><title type='text'>JList or JTable - I need a multi-column display</title><content type='html'>I'm gradually coming to grips with programming user interfaces in Java.  Read a bit on the MVC (Model View Control)  concept and while I see its value, it is a bit too steep a gradient at this point.  I am starting off getting the basics of the Swing GUI and have been using Jgoodies with the Jigloo Windows builder.  Even that is a bit steep as I want to know how to build  these from the ground up and using the drag and drop tools resulted in skipping some of the basics that left me hanging, when trying to modify and customize what Jigloo provide.d&lt;br /&gt;&lt;br /&gt;What has helped learn this the fastest has been to work out some simple application that will be useful and then laying out a UML diagram including Use Case for the requirements,  Activity Diagrams and Class Diagrams.  A programmer is lost in the woods without these design tools.   Then I've taken one element at a time, the JDBC database access, pulling up a list and displaying this, etc.&lt;br /&gt;&lt;br /&gt;I am up to a point where I need to display a simple list of entries from a database.  The list should have 3 columns.   I've only been able to get this to work with one column so far.  So what I am looking into is whether it would be better to just use the JTable or figure out a "multi-column" JList. &lt;br /&gt;&lt;br /&gt;Here are some resources to figure this out:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeguru.com/java/Swing/JTable/index.shtml"&gt;Code Guru&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/JTable.html"&gt;Java Sun&lt;/a&gt;&lt;br /&gt;&lt;a href="http://code.dreamincode.net/snippet396.htm"&gt;Dream In Code&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And don't forget to use your &lt;a href="http://www.scientologyhandbook.org/SH1_1.HTM"&gt;Study Tech&lt;/a&gt;!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115795361351364711?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115795361351364711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115795361351364711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115795361351364711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115795361351364711'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/jlist-or-jtable-i-need-multi-column.html' title='JList or JTable - I need a multi-column display'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115774567313626167</id><published>2006-09-08T13:00:00.000-07:00</published><updated>2006-09-13T15:13:16.393-07:00</updated><title type='text'>Java isDate() Solved!</title><content type='html'>With the help of some friends in &lt;a href="http://www.javalobby.org/java/forums/m92039420.html#92039420%5C"&gt;Javalobby&lt;/a&gt; I was able to get a solution to the isDate() issue for Java.&lt;br /&gt;Below is a method that simulates the Visual Basic isDate() method and is configurable so you can set what you consider are the valid date formats.&lt;br /&gt;I modifed this and added the "Jan|Feb|Mar|Apr..." and "JAN|FEB|MAR|APR|..." to the regex so that the method now validates the formats I needed to check.&lt;br /&gt;I am now implementing this in my application.&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;&lt;span style="font-size:85%;"&gt;import&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; java.util.ArrayList;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;import&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; java.util.regex.Pattern;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-size:85%;color:darkgreen;"  &gt;&lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;class&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; IsDateTestClass &lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;{&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;static&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;&lt;b&gt;boolean&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; isDate(CharSequence date) &lt;/span&gt;&lt;span style=";font-size:85%;color:navy;"  &gt;{&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=";font-size:85%;color:darkgreen;"  &gt;// some regular expression&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;String time = &lt;/span&gt;&lt;span style=";font-size:85%;color:red;"  &gt;"(\\s(([01]?\\d)|(2[0123]))[:](([012345]\\d)|(60))"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;  + &lt;/span&gt;&lt;span style=";font-size:85%;color:red;"  &gt;"[:](([012345]\\d)|(60)))?"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;; &lt;/span&gt;&lt;span style=";font-size:85%;color:darkgreen;"  &gt;// with a space before, zero or one time&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=";font-size:85%;color:darkgreen;"  &gt;// no check for leap years (Schaltjahr)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=";font-size:85%;color:darkgreen;"  &gt;// and 31.02.2006 will also be correct&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;String day = &lt;/span&gt;&lt;span style=";font-size:85%;color:red;"  &gt;"(([12]\\d)|(3[01])|(0?[1-9]))"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;; &lt;/span&gt;&lt;span style=";font-size:85%;color:darkgreen;"  &gt;// 01 up to 31&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;String month = &lt;/span&gt;&lt;span style=";font-size:85%;color:red;"  &gt;"((1[012])|(0\\d))"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;; &lt;/span&gt;&lt;span style=";font-size:85%;color:darkgreen;"  &gt;// 01 up to 12&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;String year = &lt;/span&gt;&lt;span style=";font-size:85%;color:red;"  &gt;"\\d{4}"&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=";font-size:85%;color:darkgreen;"  &gt;// define here all date format&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;ArrayList&lt;pattern&gt; patterns = &lt;span style="color:navy;"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt; ArrayList&lt;pattern&gt;();&lt;br /&gt;patterns.add(Pattern.compile(day + &lt;span style="color:red;"&gt;"[-.]"&lt;/span&gt; + month + &lt;span style="color:red;"&gt;"[-.]"&lt;/span&gt; + year + time));&lt;br /&gt;patterns.add(Pattern.compile(year + &lt;span style="color:red;"&gt;"-"&lt;/span&gt; + month + &lt;span style="color:red;"&gt;"-"&lt;/span&gt; + day + time));&lt;br /&gt;&lt;span style="color:darkgreen;"&gt;// here you can add more date formats if you want&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:darkgreen;"&gt;// check dates&lt;/span&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt; (Pattern p : patterns)&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt; (p.matcher(date).matches())&lt;br /&gt;  &lt;span style="color:navy;"&gt;&lt;b&gt;return&lt;/b&gt;&lt;/span&gt; &lt;span style="color:navy;"&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;return&lt;/b&gt;&lt;/span&gt; &lt;span style="color:navy;"&gt;&lt;b&gt;false&lt;/b&gt;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;public&lt;/b&gt;&lt;/span&gt; &lt;span style="color:navy;"&gt;&lt;b&gt;static&lt;/b&gt;&lt;/span&gt; &lt;span style="color:navy;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt; main(String[] args) &lt;span style="color:navy;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ArrayList&lt;string&gt; dates = &lt;span style="color:navy;"&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt; ArrayList&lt;string&gt;();&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"05.10.1981"&lt;/span&gt;); &lt;span style="color:darkgreen;"&gt;// swiss date format (dd.MM.yyyy)&lt;/span&gt;&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"05-10-1981"&lt;/span&gt;);&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"07-09-2006 23:00:33"&lt;/span&gt;);&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"2006-09-07 23:01:24"&lt;/span&gt;);&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"2003-08-30"&lt;/span&gt;);&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"2003-30-30"&lt;/span&gt;); &lt;span style="color:darkgreen;"&gt;// false&lt;/span&gt;&lt;br /&gt;dates.add(&lt;span style="color:red;"&gt;"some text"&lt;/span&gt;);  &lt;span style="color:darkgreen;"&gt;// false&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt; (String d : dates)&lt;br /&gt;System.out.println(isDate(d));&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:navy;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/string&gt;&lt;/string&gt;&lt;/pattern&gt;&lt;/pattern&gt;&lt;/span&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115774567313626167?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115774567313626167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115774567313626167' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115774567313626167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115774567313626167'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/java-isdate-solved.html' title='Java isDate() Solved!'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115765741526246049</id><published>2006-09-07T12:11:00.000-07:00</published><updated>2006-09-11T08:20:25.093-07:00</updated><title type='text'>Java isDate() Function</title><content type='html'>New to Java, but learning fast and definitely experiencing the "Paradigm Shift", however  I find  it odd that there is no isDate() function like there is in Visual Basic.&lt;br /&gt;&lt;br /&gt;As mentioned in an earlier post, I ran into a &lt;a href="http://mycodepage.blogspot.com/2006/08/java-date-conversion.html"&gt;Java Date Conversion&lt;/a&gt; issue where the date format that I was expecting and turned out in the live data tests, to be a different format.  This was after building over 500 test cases that test each of the business rules programmed into a &lt;a href="http://www.jboss.com/products/rules"&gt;Drools Rules&lt;/a&gt; (now Jboss)  processor.&lt;br /&gt;&lt;br /&gt;So obviously, I want to have all possible date formats accounted for so the solution is to have a function that loops through each of the possible date formats and check if the string parses into a valid Date object using that particular SimpleDateFormat.&lt;br /&gt;&lt;br /&gt;I know this can be done using try-catch blocks, but I want to create a more elegant approach calling my custom isDate() function.&lt;br /&gt;&lt;br /&gt;Checking aroung Javalobby and other places to see if anyone has already solved this, or if I need to create from scratch.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115765741526246049?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115765741526246049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115765741526246049' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115765741526246049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115765741526246049'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/java-isdate-function.html' title='Java isDate() Function'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115758461481375546</id><published>2006-09-06T16:12:00.000-07:00</published><updated>2007-01-17T14:05:55.380-08:00</updated><title type='text'>Tom Cruise, Baby Suri, Photos Released</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://newsimg.bbc.co.uk/media/images/42056000/jpg/_42056916_surivanityfair_203.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://newsimg.bbc.co.uk/media/images/42056000/jpg/_42056916_surivanityfair_203.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;As you can see, Suri is absolutely a beautiful child.   Vanity Fair has a major feature on Tom Cruise, Katie Holmes and Suri Cruise.  This article dispels the rumors that have been generated by the media over the last several months.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115758461481375546?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://news.bbc.co.uk/2/hi/entertainment/5318984.stm' title='Tom Cruise, Baby Suri, Photos Released'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115758461481375546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115758461481375546' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115758461481375546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115758461481375546'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/tom-cruise-baby-suri-photos-released.html' title='Tom Cruise, Baby Suri, Photos Released'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115758272568109076</id><published>2006-09-06T15:39:00.000-07:00</published><updated>2006-09-06T15:45:26.030-07:00</updated><title type='text'>Scientology Today New Site Design</title><content type='html'>There is a newly designed Scientology Today website.  This has daily news about Scientology activities around the world.  Scientologists, helping others, using Scientology technology to improve conditions in their environments.&lt;br /&gt;&lt;br /&gt;Today's news story has a &lt;a style="color: rgb(51, 102, 255);" href="http://www.scientologytoday.org/press/609060105541_scn-int.html"&gt;picture of a chinese VM&lt;/a&gt;  and a little girl she is helping. &lt;br /&gt;&lt;br /&gt;I've noticed the Scientology sites are getting more and more aesthetic and easier to get around in.&lt;br /&gt;Some of the new sites that are stunning are the &lt;a href="http://www.youthforhumanrights.org/"&gt;Youth For Human Rights&lt;/a&gt; and the &lt;a aiotitle="Scientology Handbook" href="http://www.scientologyhandbook.org/"&gt;Scientology Handbook&lt;/a&gt; sites.&lt;br /&gt;&lt;br /&gt;Go and take a look at these sites and let me know your feedback...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115758272568109076?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.scientologytoday.org/' title='Scientology Today New Site Design'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115758272568109076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115758272568109076' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115758272568109076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115758272568109076'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/09/scientology-today-new-site-design.html' title='Scientology Today New Site Design'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115695911356166789</id><published>2006-08-30T10:23:00.000-07:00</published><updated>2006-09-04T00:35:04.846-07:00</updated><title type='text'>ACM, Safari and the Professional Development Center</title><content type='html'>I found a gem.  This is the ACM, Association for Computing Machinery.  This association has a yearly membership of less than $100 and with this you get access to over 1000 online books, including the O'Reilly series and over 500 online courses.  &lt;br /&gt;&lt;br /&gt;I've enrolled in about 5 different courses and any one of these would have cost hundreds of dollars each if I had enrolled in one of the online college degree services or other online computer courses. &lt;br /&gt;With this yearly membership you get full access to the &lt;a href="http://pd.acm.org/safari/top_ten_books.cfm"&gt;Safari collection&lt;/a&gt; of books as well. &lt;br /&gt;&lt;br /&gt;I am currently enrolled on the full OOAD, Object Oriented Analysis &amp; Design curriculum which contains 6 different courses, gradiently walking you through from basic OO concepts all the way through detailed UML diagrams.  Every course contains "Pre" and "Post" examinations so you if you already are an expert at a subject, the course is customized to fit what you still need to work on based on your "Pre" test results.  Then you must get over 80% passing rate for you to be considered "complete" with any course.  You are directed back to the exact point you missed and you can clear up any misunderstood words and re-study.&lt;br /&gt;&lt;br /&gt;Definitely an "A+" for &lt;a href="http://www.acm.org/"&gt;ACM &lt;/a&gt;and the &lt;a href="http://pd.acm.org/"&gt;Professional Development Cente&lt;/a&gt;r.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115695911356166789?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://pd.acm.org/cp_home.cfm' title='ACM, Safari and the Professional Development Center'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115695911356166789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115695911356166789' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115695911356166789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115695911356166789'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/acm-safari-and-professional.html' title='ACM, Safari and the Professional Development Center'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115691998228348432</id><published>2006-08-29T23:25:00.000-07:00</published><updated>2006-08-29T23:39:43.350-07:00</updated><title type='text'>I know I have a Coffee Addiction, but a Mental Disorder?</title><content type='html'>The American Psychiatric Association has been at it again.  One of the latest entries in the DSM "&lt;a href="http://www.cchr.org/index.cfm/6509"&gt;The Handbook of Mental Disorders&lt;/a&gt;", is the Caffeine Disorder.  If you are a coffee drinker and get a headache when you don't drink coffee, you can now get free Prozac, paid for by your insurance company.   This is because the DSM is used as a shopping list and if it is in the DSM, you can prescribe it.  This is total B.S.  The disorders entered into the DSM are voted on by a group of psychs each year and they have admitted there is no scientific evidence to back up these disorders. Here is the latest &lt;a href="http://www.psychiatryonline.com/content.aspx?aID=1209"&gt;caffeine related disorder&lt;/a&gt;. &lt;br /&gt;Anyone who feels this is a bunch of B.S. should check out the &lt;a href="http://www.cchr.org"&gt;CCHR website&lt;/a&gt; as they are doing an excellent job of exposing these frauds.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115691998228348432?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://news.nationalgeographic.com/news/2005/01/0119_050119_ngm_caffeine.html' title='I know I have a Coffee Addiction, but a Mental Disorder?'/><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115691998228348432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115691998228348432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115691998228348432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115691998228348432'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/i-know-i-have-coffee-addiction-but.html' title='I know I have a Coffee Addiction, but a Mental Disorder?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115674307812435655</id><published>2006-08-27T22:28:00.000-07:00</published><updated>2006-09-10T08:59:53.326-07:00</updated><title type='text'>Star UML - pretty good... What about Poseidon?</title><content type='html'>Ok, Star UML is pretty good.  It felt a little too restricted to code-direct diagrams as opposed to a more abstract modeling environment which is how I like to start. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gentleware.com/"&gt;Poseidon &lt;/a&gt;has been downloaded by over a million people.  But there is no free version bar a 30-day free trial. &lt;br /&gt;&lt;br /&gt;I am going to dig a little more into this and see if it can't just satisfy my UML needs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115674307812435655?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115674307812435655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115674307812435655' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115674307812435655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115674307812435655'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/star-uml-pretty-good-what-about.html' title='Star UML - pretty good... What about Poseidon?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115673944657798637</id><published>2006-08-27T21:25:00.000-07:00</published><updated>2006-08-27T21:30:46.686-07:00</updated><title type='text'>Star UML Design Tool</title><content type='html'>Ok, I downloaded the &lt;a href="http://staruml.sourceforge.net/en/"&gt;Star UML Design tool&lt;/a&gt;.  Looks like an open source UML tool.  Sounds promising.   I'll give it a review in a bit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115673944657798637?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115673944657798637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115673944657798637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115673944657798637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115673944657798637'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/star-uml-design-tool.html' title='Star UML Design Tool'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115673890379444610</id><published>2006-08-27T21:17:00.000-07:00</published><updated>2006-08-27T21:21:44.163-07:00</updated><title type='text'>UML Free Tools</title><content type='html'>Searching the web, trying to find a good simple UML tool.  After studying some basics on the UML method I am finding numerous applications where a UML design tool with be great.  Of course one could be simulated using Word or Open Office, but it would be much nicer for a series of templates to be laid out ahead of time for each of the different types of diagrams and have these easily available.&lt;br /&gt;&lt;br /&gt;I've tried the &lt;a href="http://www.visual-paradigm.com/"&gt;Visual Paradigm Community Edition&lt;/a&gt; which is free and is very nice however you can't print anything off without these annoying watermarks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115673890379444610?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115673890379444610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115673890379444610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115673890379444610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115673890379444610'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/uml-free-tools.html' title='UML Free Tools'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115661966986060533</id><published>2006-08-26T12:10:00.000-07:00</published><updated>2006-09-14T13:08:29.266-07:00</updated><title type='text'>Scientology Stress Tests - Do They Really Work?</title><content type='html'>Anyone been to the Big Apple lately or walked down Hollywood Blvd and seen the guys in red Dianetics shirts, with the &lt;a href="http://www.scientology.org/en_US/religion/auditing/pg005.html"&gt;E-Meters&lt;/a&gt; and big signs saying "FREE STRESS TEST"?&lt;br /&gt;&lt;br /&gt;Here is how this works: &lt;br /&gt;&lt;br /&gt;What they do is sit you down and give you a pair of cans to hold.  You are asked to think about people and situations in your life that may be causing you stress.  The meter reacts to thought as thought is energy.  A small electrical current is passed from one hand, through your body and out the other hand.  When you think of something stressful, your thought contains more electrical resistance which is measured on the E-Meter with a right motion of the needle. &lt;br /&gt;&lt;br /&gt;I have seen this done myself and I have given Stress Tests.  The result is quite impressive.  I was able to pinpoint exact areas of people's lives that are causing them stress.  After receiving the stress test, most people want to find out how to get rid of that stress. &lt;br /&gt;&lt;br /&gt;This is what &lt;a href="http://www.dianetics.org/"&gt;Dianetics &lt;/a&gt;is all about.  Getting rid of the negative emotion of past incidents which cause you stress in the present. &lt;br /&gt;&lt;br /&gt;Here is an &lt;a href="http://testing.dianetics.org/en_US/index.html"&gt;on-line version of the Stress Test that you can do&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115661966986060533?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115661966986060533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115661966986060533' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115661966986060533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115661966986060533'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/scientology-stress-tests-do-they.html' title='Scientology Stress Tests - Do They Really Work?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115655477848027014</id><published>2006-08-25T16:40:00.000-07:00</published><updated>2006-08-25T18:12:58.900-07:00</updated><title type='text'>Java Date Conversion !?!@@#@:(</title><content type='html'>Is anyone else perturbed about Java dates!  2 weeks of programming based on what was thought to be the "expected" date format of "yyyy-mm-dd" and it turns out to be "dd-mmm-yyyy" and nothing works.  Ok, but my program should be able to handle all the various types of common date formats that could be sent in.  So I figure, sure, others must have run into this, let's find a library  on the net.  After nearly an hour of searching, no luck.  I guess I'll just build my own...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115655477848027014?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115655477848027014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115655477848027014' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115655477848027014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115655477848027014'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/java-date-conversion.html' title='Java Date Conversion !?!@@#@:('/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115635532817826878</id><published>2006-08-23T10:34:00.000-07:00</published><updated>2007-01-18T17:00:14.953-08:00</updated><title type='text'>SmallTalk approach to OOP</title><content type='html'>1. Everything is an object. Think of an object as a fancy variable; it stores data, but you can “make requests” to that object, asking it to perform operations on itself. In theory, you can take&lt;br /&gt;any conceptual component in the problem you’re trying to solve (dogs, buildings, services, etc.) and represent it as an object in your program.&lt;br /&gt;&lt;br /&gt;Some language designers have decided that object-oriented programming by itself is not adequate to easily solve all programming problems, and advocate the combination of various approaches into multiparadigm programming languages.&lt;br /&gt;&lt;br /&gt;2. A program is a bunch of objects telling each other what to do by sending messages. To make a request of an object, you “send a message” to that object. More concretely, you can think of a message as a request to call a method that belongs to a particular object.&lt;br /&gt;&lt;br /&gt;3. Each object has its own memory made up of other objects. Put another way, you create a new kind of object by making a package containing existing objects. Thus, you can build&lt;br /&gt;complexity into a program while hiding it behind the simplicity of objects.&lt;br /&gt;&lt;br /&gt;4. Every object has a type. Using the parlance, each object is an instance of a class, in which “class” is synonymous with “type.” The most important distinguishing characteristic of a class is “What messages can you send to it?”&lt;br /&gt;&lt;br /&gt;5. All objects of a particular type can receive the same messages. This is actually a loaded statement, as you will see later. Because an object of type “circle” is also an object of type&lt;br /&gt;“shape,” a circle is guaranteed to accept shape messages. This means you can write code that talks to shapes and automatically handle anything that fits the description of a shape. This&lt;br /&gt;substitutability is one of the powerful concepts in OOP. &lt;br /&gt;&lt;br /&gt;An excerpt from &lt;a href="http://mindview.net/Books/TIJ4"&gt;Thinking in Java.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Quoted&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115635532817826878?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115635532817826878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115635532817826878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115635532817826878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115635532817826878'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/smalltalk-approach-to-oop.html' title='SmallTalk approach to OOP'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115629955654898745</id><published>2006-08-22T19:19:00.000-07:00</published><updated>2006-08-22T19:19:16.546-07:00</updated><title type='text'>The Open Source Paradigm Shift</title><content type='html'>O'Reilly describes the &lt;a href="http://tim.oreilly.com/articles/paradigmshift_0504.html"&gt;Open Source Paradigm shift&lt;/a&gt; that is ongoing...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115629955654898745?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115629955654898745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115629955654898745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115629955654898745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115629955654898745'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/open-source-paradigm-shift.html' title='The Open Source Paradigm Shift'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115627214756749826</id><published>2006-08-22T11:31:00.000-07:00</published><updated>2006-08-22T12:51:35.283-07:00</updated><title type='text'>Jigloo Eclipse Windows Builder?</title><content type='html'>Building GUIs for rich client apps in Eclipse is not the easiest thing in the world.  I'm looking for windows builders comparable to the Net Beans GUI builder.&lt;br /&gt;&lt;br /&gt;I am downloading the &lt;a href="http://www.cloudgarden.com/jigloo/index.html"&gt;Jigloo GUI builder&lt;/a&gt; which sounds pretty good but that is coming from company who made it.&lt;br /&gt;&lt;br /&gt;What about &lt;a href="http://www.instantiations.com/windowbuilderpro/default.htm"&gt;WindowsBuilderPro?&lt;/a&gt;  This is a commercial product, not free like Jigloo.  How is it better?&lt;br /&gt;&lt;br /&gt;I'll try both and see for myself...&lt;br /&gt;&lt;br /&gt;On the install, Jigloo is very simple and is just like any other Eclipse plugins.  Just copy to the features and plugins directories and your done.   WindowBuilder on the other hand has you walk through a install wizard which took only a couple minutes to run through.  (Make sure you don't have Eclipse running during the install). &lt;br /&gt;&lt;br /&gt;WindowsBuilder has several example apps you can try.  In 5 minutes of testing this builder I found it very user friendly.  I liked the "quick view" feature where without even compiling you can get a feel for how your app will look during runtime.  Now on to Jigloo.&lt;br /&gt;&lt;br /&gt;After the few minutes I found it easy to create a basic app.  Nothing difficult.  I liked the two screen (code/app) view that shows the two-way changes so if you edit the GUI the code changes or you edit the code and the GUI changes. &lt;br /&gt;&lt;br /&gt;So far they are both comparable products and I'll spend a bit more time using each on an actual application to see which is the better product.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115627214756749826?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115627214756749826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115627214756749826' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627214756749826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627214756749826'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/jigloo-eclipse-windows-builder.html' title='Jigloo Eclipse Windows Builder?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115627106195787585</id><published>2006-08-22T11:18:00.000-07:00</published><updated>2006-08-22T11:24:21.966-07:00</updated><title type='text'>The Set Interface</title><content type='html'>Here is how this works.  Set is an interface that extends the Collections object.  HashSet is an instance of "Set".  You can't just instantiate the interface.  You do this with the concrete HashSet,  TreeSet or LinkedHashSet implementations.  Each of these handle the Collection differently. &lt;br /&gt;&lt;br /&gt;The HashSet doesn't care what sequence the data is in, but will ensure no duplicates are allowed. &lt;br /&gt;&lt;br /&gt;The TreeSet will sort the data and keep it in that order and the LinkedHashSet will retain the sortation that it originally was stored in.&lt;br /&gt;&lt;br /&gt;Pretty simple eh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115627106195787585?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115627106195787585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115627106195787585' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627106195787585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627106195787585'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/set-interface.html' title='The Set Interface'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115627009392725454</id><published>2006-08-22T10:53:00.000-07:00</published><updated>2006-09-09T06:57:47.956-07:00</updated><title type='text'>Using the for loop with a colon?</title><content type='html'>I've gone through the famous Eckel book on "Thinking in Java" and could not find the examples I've seen in various code, using a for loop with : instead of commas.   &lt;br /&gt;&lt;br /&gt;Here is an example of one:&lt;br /&gt;&lt;pre&gt;class EnhancedForDemo {&lt;br /&gt;    public static void main(String[] args){&lt;br /&gt;         int[] numbers = {1,2,3,4,5,6,7,8,9,10};&lt;br /&gt;         for (int item : numbers) {&lt;br /&gt;           System.out.println("Count is: " + item);&lt;br /&gt;         }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;While writing this entry, I found &lt;a href="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html"&gt;a site&lt;/a&gt; which gives some direction on this, but still I am not totally tracking.  Looking for a better description.  &lt;br /&gt;&lt;br /&gt;This format of the "for" loop is generally called the "enhanced for loop" and is used with arrays and collections.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jcp.org/aboutJava/communityprocess/jsr/tiger/enhanced-for.html"&gt;Enhanced For&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.devx.com/tips/Tip/20062"&gt;The Enhanced For Loop&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Looks like this was only released with JDK 5.0.  No wonder I couldn't find it in my outdated reference books...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115627009392725454?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115627009392725454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115627009392725454' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627009392725454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115627009392725454'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/using-for-loop-with-colon.html' title='Using the for loop with a colon?'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33171646.post-115626865552303266</id><published>2006-08-22T10:38:00.000-07:00</published><updated>2006-08-22T10:44:15.533-07:00</updated><title type='text'>Collection Examples</title><content type='html'>I am drilling on using collections, specifically the "Set" collection.&lt;br /&gt;&lt;br /&gt;Here is an &lt;a href="http://java.sun.com/docs/books/tutorial/collections/interfaces/set.html"&gt;example &lt;/a&gt;using a simple Set collection:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;import java.util.*;&lt;br /&gt;&lt;br /&gt;public class FindDups2 {&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;       Set&lt;string&gt; uniques = new HashSet&lt;string&gt;();&lt;br /&gt;       Set&lt;string&gt; dups    = new HashSet&lt;string&gt;();&lt;br /&gt;&lt;br /&gt;       for (String a : args)&lt;br /&gt;           if (!uniques.add(a))&lt;br /&gt;               dups.add(a);&lt;br /&gt;&lt;br /&gt; // Destructive set-difference&lt;br /&gt;       uniques.removeAll(dups);&lt;br /&gt;&lt;br /&gt;       System.out.println("Unique words:    " + uniques);&lt;br /&gt;       System.out.println("Duplicate words: " + dups);&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;The program is called with "java findDups2 (here you would pass the arguments)"  The above will return you a list of the Unique words and the duplicate words passed in its arguments. &lt;br /&gt;&lt;br /&gt;Based on the above, objects could also be checked for duplicates, or specific members of objects such as id numbers, names, addresses, etc. &lt;br /&gt;&lt;br /&gt;Taking mental note of this for future operations...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33171646-115626865552303266?l=mycodepage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodepage.blogspot.com/feeds/115626865552303266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33171646&amp;postID=115626865552303266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115626865552303266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33171646/posts/default/115626865552303266'/><link rel='alternate' type='text/html' href='http://mycodepage.blogspot.com/2006/08/collection-examples.html' title='Collection Examples'/><author><name>Blackfoot</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
