Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.sql.SQLException: Before start of result set  RSS feed

 
Abdoulgani Mohamed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi  guys i got problemes help me please. I got a combobox of column "matricule" i want to show in the JLabel the colum "nom".


help.PNG
[Thumbnail for help.PNG]
The UI
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37044
505
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is correct. You missed calling rs.next() in this code:
 
Abdoulgani Mohamed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:The error message is correct. You missed calling rs.next() in this code:



Thank you i fixed that.
So how can i set my topic solved .
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37044
505
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abdoulgani Mohamed wrote:Thank you i fixed that.
So how can i set my topic solved .

Done!
 
Skool. Stay in. Smartness. Tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!