Java executes "if" block when condition is demonstrably false
<p><img src="http://i.stack.imgur.com/qGJtM.png" alt="Screen shot of my problem."></p>

<p>This pretty much says it all. <code>paneNum</code> is 0. Test for <code>paneNum &lt; 0</code> is apparently <code>true</code> since the instruction pointer is inside the if-block, and the function returns <code>false</code>.</p>

<p>Any ideas?</p>
