If you provide an SSCCE, it will be much easier to help you. Until then, I recommend stepping through this with a debugger to figure out what's going on. Recommended reading:...
Type: Posts; User: KevinWorkman
If you provide an SSCCE, it will be much easier to help you. Until then, I recommend stepping through this with a debugger to figure out what's going on. Recommended reading:...
What does it show instead?
I don't see any code that shows a JOptionPane, so I'm not sure where you're stuck.
Also, I highly recommend surrounding blocks with {}, even if it's just a single line. I'm not sure if your code...
Not really sure what your question is. Does your code do what you want? If not, what does it do instead? Where is your SSCCE? Have you stepped through this with a debugger, or at least added some...