Skip to main content

Create or display the number of rows of data or with java NetBeans and MySQL

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

Popular posts from this blog

Source Code Program Sistem Informasi Rekam Medis Pada KLinik Rawat Jalan Berbasis Java Web (JSP, Servlet, JSTL)

Bismillah... Mencoba lagi meskipun masih sederhana.. Source code program ini menggunakan Netbeans 7.2 berbasis java web (JSP, JSTL, Servlet) dan menggunakan perintah SQL inner join untuk mempermudah User dalam menggunakan sistem/aplikasi ini. Bisa melakukan simpan, edit, hapus dan pencarian data. Design web nya menggunakan bahasa HTML dan CSS. Berikut hasil screen shoot tampilan program setelah di Run di Google Chrome : 1. Tampilan Home/Beranda ketika pertama kali di Run. 2. Tentang Program (Tampilan yang muncul ketika klik Menu About.) 3. Input Data Obat (tampilan ketika menu Obat di klik) 4. Input Data Dokter (tampilan ketika menu Dokter di klik) 5. Input Data Petugas (tampilan ketika menu Petugas di klik) 6. Input Data Pasien (tampilan ketika menu Pasien di klik) 7. Input Data Tarif Tindakan (tampilan ketika menu Tarif Tindakan di klik) 8. Input Data Pemberian Obat (tampilan ketika menu Pemberian Obat di klik)     Berrelasi dengan tabel Obat...

source code program pembuatan sistem informasi posyandu menggunakan netbeans IDE 7.2 berbasis java web

Source code program ini menggunakan Netbeans 7.2 berbasis java web (JSP, JSTL, Servlet) dan menggunakan perintah SQL inner join untuk mempermudah User dalam menggunakan sistem/aplikasi ini. Bisa melakukan simpan, edit, hapus dan pencarian data, dan juga ada fasilitas Presensi Petugas. Berikut hasil screen shoot tampilan program : 1. Menu Utama 2. Menu input data Berat Badan Bayi Timbang 3. Menu input data Petugas 4. Menu input data Posyandu (inner join dengan tabel data Kelurahan) 5. Menu input data Puskesmas (inner join dengan tabel data Kecamatan) 6. Menu input data Kelurahan (inner join dengan tabel data Puskesmas) 7. Menu input data Kecamatan 8. Menu input data Ibu (inner join dengan tabel data Posyandu) 9. Menu input data Anak (inner join dengan tabel data Ibu) 10. Menu input data Ibu Hamil (inner join dengan tabel data Ibu) 11. Menu input data Layanan Anak ( inner join dengan tabel data Anak) 12. Menu Presensi Petugas (inner join d...

Source code program SIMRS/Rekam Medis (khusus poliklinik ibu dan anak) dengan java netbeans #tambahan2

Ada tambahan pada Source code program beserta database nya sudah ready hehee... Design tampilan menggunakan jTatto, sebelum program di Run add file jar jTatto nya ke Libraries, caranya ya download dulu file jTatto.jar , buka project nya, klik kanan Libraries > pilih Add jar/folder > cari file jTatto.jar > Open. Program ini sudah lengkap dengan inner join tabelnya, login/logout dan cetak laporan/report, Berikut hasil Screen Shoot nya, temen2 silahkan kembangkan sendiri dan ubah designnya sesuai selera masing2! 1. Tampilan sebelum login 2. Tampilan input data admin 2. Tampilan input data pasien ibu 3. Tampilan input data pasien mati ibu 4. Tampilan input data pasien bayi 5. Tampilan input data pasien mati bayi 6. Tampilan input data penyakit 7. Tampilan input data kamar 8. Tampilan input data tindakan 9. Tampilan input data rawat inap bayi 10. Tampilan input data rawat inap ibu 11. Tampilan input data imun...