This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 18541
    
    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???
 
Don't get me started about those stupid light bulbs.
 
subject: The "Next" is not working