Force JTable to "commit" data to model while it is still in editing mode
<p>I have a JTable as follow.</p>

<p><img src="http://i.stack.imgur.com/LWHzn.png" alt="alt text"></p>

<p>So, while the JTable is still in editing mode (There is a keyboard cursor blinking at Dividend column), clicking OK directly will not commit the data into table model. Clicking OK merely close the dialog box.</p>

<p>I need to press ENTER explicitly, in order to commit the data into table model.</p>

<p><strong>While JTable is still in editing mode, before closing dialog box, is there any way I can tell the JTable by saying, "Hey, is time for you to commit the changes into your model"</strong></p>

<p>The source code for this dialog box is as follow <a href="http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/gui/portfolio/DividendSummaryJDialog.java?revision=1.12&amp;view=markup" rel="nofollow">Dialog Box Source Code</a>. Do look at <code>jButton1ActionPerformed</code> for the executed code when OK is pressed.</p>
