File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 506

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
Sheriff

Joined: Oct 14, 2005
Posts: 19690
    
  10

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

Joined: Oct 07, 2010
Posts: 506

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: 506

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
 
It's not a secret anymore!