This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes The Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "The "Next" is not working" Watch "The "Next" is not working" New topic
Author

The "Next" is not working

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Hi,

Please have a look at the following set of codes.

JustTest.java



JustTestSQL.java



when I click the "Next" button, it just shows the result for once, then nothing! Which means then it is not navigating forward!! Anyway if I remove the buttonStatus() methods from JustTest.java file, everything is working fine!! What is the problem here? Please help


Are you better than me? Then please show me my mistakes..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18712
    
    8

Your problem is at line 97 of the JustTest class.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Thanks for the reply Paul. I edited that, but still no good

This is what I did.

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Seems like it is locking the rs.next() method. Why is this? Why it is working after removing that buttonStatus() method???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The "Next" is not working