Or it could be called a number of recordings in the table or
database.
than confused , see the following picture :
In the red circle that's what I mean , and maybe you are too , just to deliver it that hard? it's okay , here's how to make it :
1.Open the Netbeans software, then your project , then the form will be given record .
2.Add two labels , the first label given text " Record : " , then the label text to the two given numbers " 0 " . VIEW IMAGES were given a red circle and arrow !
it is the result of counting the number of rows of data that has been fed , note the contents of the table ! In the table only contains 3 data, the Record : 3 , and when the input data is again Record 1 to 3 + 1 so the Record : 4. so right ????
3.On the label " Record : " do right click - select variable name change - given the name " record " . Then the label " 0 " also please do right click - select variable name change - and give it the name " LCountPtg "
4.Back to the Source tab , find the display source code class that is used to invoke the data from the database to the JTable , then add image coding as already circled in red . examples display the source code as follows :
5.Only the coding used for showing the number of rows of data that has been entered and shown to JTable . Easy right ??? it is not difficult to learn if we want to try looking for references .Trying to do storage , and then try to run the program and see the results .
6.Note the difference with the picture earlier, in this picture has been entered new data in line 4 ,
Download Source code in here!
Happy coding :D
Comments
Post a Comment