This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
My task as a homework project is to add a label to Gui (sql data base, data table) to total records (Datensatz 1 von 2).
The first part was to obtain the number of the actual record which I have achieved via method getRow() in ResultSet (In the code it is calld ergebnisMenge in German).
I have created the JLabel and called it datensatz.
The part that I do not know is how to achieve the total records and combine it in the code.
From what I found in researching in the Internet, I need to execute Query SELECT COUNT (*) FROM adressen but how do I combine it within the following code and display it as a Label?
Thanks in advance for any useful information, please note that it will be better way more helpful if you add some pseudocode or example since I am a beginner and get lost with the technical stuff.