Display data from SQL database into jtable in java

  Рет қаралды 315,611

Indra Subedi

Indra Subedi

Күн бұрын

Пікірлер: 195
@jazmincappo6625
@jazmincappo6625 3 жыл бұрын
Look, I'm from Paraguay (a small Country between Argentina and Brasil in South America which majority speak spanish and "Guarani" Our native language from our ancients) I want to send my Congratulations because nowadays your videos still help people and let me just say an enormous THANK YOUUUUUUU
@d0odle
@d0odle Жыл бұрын
You have no idea how much this hepled me. Not only that I integrated this into my project but I also integrated it too the other classmates who were struggling with the table.
@indrasubedi
@indrasubedi Жыл бұрын
Glad to hear it helped.
@alastorcodm159
@alastorcodm159 11 ай бұрын
after looking for more than 5 hours, finally I found your video that helped me a lot, thx
@indrasubedi
@indrasubedi 11 ай бұрын
Happy to hear from you.
@angwei6221
@angwei6221 3 жыл бұрын
To anyone watching in 2021: this stuff works thanks bhai
@சூ.பிரவின்குமார்
@சூ.பிரவின்குமார் 4 жыл бұрын
Tanq today started with ur video and it made my day peaceful
@indrasubedi
@indrasubedi 6 жыл бұрын
Hello My Brothers and Sisters. My humble request to you, *Please* *Don't* *Forget* *To* *Subscribe* If you have any problem, Comment down. I will provide you solution as soon as possible.
@mikejwarr
@mikejwarr 5 жыл бұрын
Really good tutorial. Thank you Indra. Great video, Job well done.
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Welcome my java tutorials
@_bahii5226
@_bahii5226 7 жыл бұрын
Superb ......You Have Done Good Job Thank You so Much
@buivanthinh4167
@buivanthinh4167 4 жыл бұрын
Thank you bro , from VietNam with love
@bemshimamichael5852
@bemshimamichael5852 4 жыл бұрын
Thanks a lots hope your coding Will takes us to the next level really appreciated
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Visit my java tutorials
@arthurtan2088
@arthurtan2088 6 жыл бұрын
Hi Indra, can u show us some way to view the data? 1) a user may choose the keywords from a "text field". example when user key in keywords with "thur" in the "text field", all the data name with "thur" will show out such as Arthur Tan, Lexthur, Exthur and etc. 2) choosing to view name that ages with more 21 years old. 3) then a user may view the data by clicking it become ascending or descending.
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks. I will prepare and upload soon
@LalGebi
@LalGebi 7 жыл бұрын
Million thanks... Pl. make a video on fetching data from Relational database( more than one table) and populating in JTable..
@almariomiano8995
@almariomiano8995 5 жыл бұрын
Hi Indra! I became your student since I started programming (Java). The thing that hit me so bad is that "How I can display multiple Images from database to multiple jlabels?" I have followed all your steps and that is good. And I am now begging for your aid. please reply ASAP! :)
@indrasubedi
@indrasubedi 5 жыл бұрын
Watch my other video, i have done there to display single image. Watch it and you may get some idea
@hythamtikka
@hythamtikka 6 жыл бұрын
table.setModel(DbUtils.resultSetToTableModel(rs)); only one single command can save time. You can use import net.
@ProSuddenAttack
@ProSuddenAttack 5 жыл бұрын
I have tried to retrieve data from database using this line. The data can be retrieved, however the column name will change to what is in my database column name.
@ProSuddenAttack
@ProSuddenAttack 5 жыл бұрын
And this line cannot display the boolean checkbox.
@MateusMeurer
@MateusMeurer 3 жыл бұрын
Indra this video is awesome, thank you!
@indrasubedi
@indrasubedi 3 жыл бұрын
Thabks for your feedback
@katanaspaun7997
@katanaspaun7997 3 жыл бұрын
thanks a lot.really helped me with our project
@indrasubedi
@indrasubedi 3 жыл бұрын
Thanks for your feedback
@joaovitorsabino5610
@joaovitorsabino5610 4 жыл бұрын
você é um anjo
@vsevolodtsukanov7917
@vsevolodtsukanov7917 3 жыл бұрын
Why in this video you use Statment insteed PreparedStatement ?
@AllanBenABJ
@AllanBenABJ 4 жыл бұрын
a very good one. I wanted to create the User class in another package but always encountered errors even when importing the package. Would you mind explaining how I can do that. Also, i needed to combine and display data from three different tables in my database. Will everything remain the same except the query and of course the rows declared in the code? Please help me get a general understanding or a link you have done that. thanks a lot.
@vishaldevgiri
@vishaldevgiri 5 жыл бұрын
"java.lang.unsupportedoperationexception not supported yet" i am getting this error can you plz tell me how to fix this?
@sadammann2650
@sadammann2650 4 жыл бұрын
Why do you store your objects inside an array list if you send it to the database? You can retrieve from the database any time, whereas all the data from an array list will disappear as soon as you close the program.
@anghiaao444
@anghiaao444 2 жыл бұрын
very good. Thank you very much for your support
@williamgriffith2822
@williamgriffith2822 4 жыл бұрын
Please come to Brazil, we love you so much. Hugs and kisses from Cuiabá- MT. Bruno lindão
@harvinderlaliya2023
@harvinderlaliya2023 5 жыл бұрын
Thanks a lot,easy to follow tutorial and awesome implementation!
@manishshrestha9176
@manishshrestha9176 7 жыл бұрын
thanks a lot for this amazing tutorial. It is really very useful.
@zimongo9777
@zimongo9777 7 жыл бұрын
Thank you your video really helps a lot
@zaishu3247
@zaishu3247 6 жыл бұрын
Thanks, you save my life
@nouredineyoussouf4843
@nouredineyoussouf4843 5 жыл бұрын
Thank you so much Indra
@akhtarrnd4012
@akhtarrnd4012 5 жыл бұрын
Thank you for such a working code
@IllegalAlien51
@IllegalAlien51 6 жыл бұрын
Indra, I'm having issues the way it's displaying the data in the jTable, it's not ordered correctly, the first 4 rows are empty (All the data are displayed below it), why? It's not the same in my Sql server database, they are ordered correctly. I remember adding and deleting records, is that the problem?
@indrasubedi
@indrasubedi 6 жыл бұрын
Please check the code below the for loop.Its due to settext improperly
@IllegalAlien51
@IllegalAlien51 6 жыл бұрын
No it's the same, but I still fixed it by adding "model.setRowCount(0)" before the for Loop.
@priyanshisolanki8650
@priyanshisolanki8650 6 жыл бұрын
Can u please share ur code?? I am having problem in adding JScrollPane
@IllegalAlien51
@IllegalAlien51 6 жыл бұрын
I already mentioned it. That's all I changed.
@nuzzy_nuz
@nuzzy_nuz 5 жыл бұрын
like he has showed in the video, u should remove the 4 empty rows right click on jtable > properties > rows tab > make the rows count 0
@signalsandsolutions618
@signalsandsolutions618 7 жыл бұрын
Can u explain about userList() method where it has been called before.?
@lloydtatendachimanga1424
@lloydtatendachimanga1424 5 жыл бұрын
Vee Eee Technologies im stuck there as well, did you find a solution?
@ikosimisimo3363
@ikosimisimo3363 5 жыл бұрын
I've put a JTable into a JScrollPane and executed my query into it (the code is 100% correct). The problem is that it only shows n-1 results!!! If there's only one line to select the table remains empty!!!!! Any help?
@arthurtan2088
@arthurtan2088 6 жыл бұрын
Hi indra, For un-fill in data in the "JTextField" is using ~ boolean function with (name_vri.getText().isEmpty() ~ may i know if untick and unchoosing the "JRadioButton", "JCheckBox" and "JComboBox" are what coding? please.
@arthurtan2088
@arthurtan2088 6 жыл бұрын
thanks for showing us the "validate form in java" in ur latest video.
@shubhamscreation9154
@shubhamscreation9154 5 жыл бұрын
In which class are you ?
@mrsylla9533
@mrsylla9533 6 жыл бұрын
you have done a great job. But i want to know how can i do to use a java program without sql. my problem is to have an exportable database to be able to use the program in another computer without having to instal xamp or any other server. thank you so much!
@theishingkhuishimray1892
@theishingkhuishimray1892 2 жыл бұрын
i also have same problem. but seeing that this comment is 3 years old. do you have a soln
@ferhatd6415
@ferhatd6415 2 жыл бұрын
​@@theishingkhuishimray1892 h2 database where you can save your sql database in a file instead of using a sql database server
@priyanshisolanki8650
@priyanshisolanki8650 6 жыл бұрын
While running the code a pop up message is shown "Result set has no current row" when i click ok then no data is displayed in JTable ... Code has no errors and data is also getting stored in database but not getting displayed in JTable... Please help!
@illyriaks
@illyriaks 6 жыл бұрын
Hi Indra, please can you tell me which is the code to see data on table not to update or edit, only code which call data from db example table users.
@indrasubedi
@indrasubedi 6 жыл бұрын
Ka Speri show_user()
@bokiesylaphet2248
@bokiesylaphet2248 7 жыл бұрын
good guy and thank you so much for you shared, hope you'll release new video asap!
@indrasubedi
@indrasubedi 6 жыл бұрын
You can find latest videos in my channel
@ahmedabdul-razak4701
@ahmedabdul-razak4701 6 жыл бұрын
hello, indra. i have a problem with after while user=new user(rs.getInt("id") i finished these but showing error "no suitable method found for getstring"? could u help me pleass?
@indrasubedi
@indrasubedi 6 жыл бұрын
Have you create the user class constructor and place all the variables in that constructor? and its user = new User(rs.getInt("id") if you cannot solve it again. send the screenshot of the code at indrasubedi95@gmail.com
@ahmedabdul-razak4701
@ahmedabdul-razak4701 6 жыл бұрын
check your email please thank you
@alex_kq
@alex_kq 6 жыл бұрын
give source code please, man
@thecatwithoutatail5420
@thecatwithoutatail5420 5 жыл бұрын
Can I use this with MySQL?
@bryansie1047
@bryansie1047 3 жыл бұрын
is this the onylyway to do it?..
@mrsylla9533
@mrsylla9533 6 жыл бұрын
gréât videos. i still have a question. how can.i do to compile and use a java project with the database inside. i've tryed to see whether i could use derby but it didn't work. what i want to do is to be able to use this project on another computer without having to instal an sql server. thanks!
@jamespui9302
@jamespui9302 4 жыл бұрын
what if i want to display blob image from database into the table ??
@astiginko
@astiginko 4 жыл бұрын
How do you open 2 data from the database into jtable with just one jtable? example one data has 5 columns and the other has 10 columnns, how will the jtable adjust to that?
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Hai Welcome my java tutorials
@jeromevalencia29
@jeromevalencia29 5 жыл бұрын
How to show only same data in jtable?
@jiysea
@jiysea 5 жыл бұрын
Can u teach us how to insert row with boolean values?
@mootunzych4236
@mootunzych4236 4 жыл бұрын
thank for help
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Yes Visit my java tutorials
@arthurtan2088
@arthurtan2088 6 жыл бұрын
Hi Indra , does the "JComboBox" able to insert an image? Can u show us some please.
@indrasubedi
@indrasubedi 6 жыл бұрын
I haven't gone through it. But i have used jlabel to insert an image. You can find it on; kzbin.info/www/bejne/pam3Y3pqnN2mrsU
@arthurtan2088
@arthurtan2088 6 жыл бұрын
ok.t.q
@ma.roderenequiambao4916
@ma.roderenequiambao4916 2 жыл бұрын
My columns are not showing :(
@tranvanngoan2780
@tranvanngoan2780 3 жыл бұрын
Thanks, but how i can do if i only used awt? ( sorry but ít’s my homework:
@khaledrashad6921
@khaledrashad6921 6 жыл бұрын
please can you help me i have an error with this String url="jdbc:derby://localhost:1527;databaseName=registration;user=khaled;password=123"; it says it is not properly formed, i'm using netbaens database. i followed you step by step
@prashiksahare789
@prashiksahare789 6 жыл бұрын
Will you upload your code in the description?
@indrasubedi
@indrasubedi 6 жыл бұрын
Go to the link : goo.gl/N9U38E
@lloydtatendachimanga1424
@lloydtatendachimanga1424 5 жыл бұрын
Where did userList() come from, its giving error...
@khoanguyen7878
@khoanguyen7878 7 жыл бұрын
It's that Good ! Thanks you very much
@princealbaloshi5125
@princealbaloshi5125 6 жыл бұрын
hi indra help me how to i update my sql data using netbeans
@kroloth
@kroloth 5 жыл бұрын
Thanks for the video Indra!! When I put: ArrayList list = userList(); I get an error cannot find symbol userList. Any help with that?
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Welcome my tutorials
@-indeed8285
@-indeed8285 7 жыл бұрын
great video.. help me please. I'm Ubuntu user but i want work on SQL database. problem is I can't understand which software I should use ? #1 ( oracle sql developer) or #2 (oracle sql database 11g) . {Note: I have installed Java8}
@indrasubedi
@indrasubedi 7 жыл бұрын
If ubuntu supports these database, you can use any one of them which you feel easy. Coding is same, you only need to change the database connection code while working using other database
@zeynep8152
@zeynep8152 3 жыл бұрын
Exception in thread "AWT-EventQueue-0" java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.sql.SQLException: Invalid operation at current cursor position. it says that error
@Engmays-bj9gr
@Engmays-bj9gr 6 жыл бұрын
هل يوجد فكرة Master-Details بالجافا؟؟
@andododo
@andododo 5 жыл бұрын
That was a great tutorial my dude. Thanks!
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Welcome my tutorials
@saritalad8923
@saritalad8923 6 жыл бұрын
can you tell how to give path of image in swing to display image on JFrame?
@indrasubedi
@indrasubedi 6 жыл бұрын
I have displayed image in jlabel. You can find the video in my playlist.
@mukulsharma5624
@mukulsharma5624 6 жыл бұрын
First Create JFrame. then create a Panel from Palette. now right click on newly created panel then click Set Layout then Null Layout. Increase the size of created panel by drag. then create a lable from Palette. Increase the size of created lable by drag. (Note that the size of Jframe, panel and lable are coinside each other or same size. ) now final step Right click on your created Lable then select properties In properties window click on icon, and browse any picture and then ok.
@sarthaksourav5753
@sarthaksourav5753 6 жыл бұрын
can you tell me how to use the same program but using button...
@indrasubedi
@indrasubedi 6 жыл бұрын
Just place the code in the mouse button action performed event
@sarthaksourav5753
@sarthaksourav5753 6 жыл бұрын
I have tried bt I face errors
@sarthaksourav5753
@sarthaksourav5753 6 жыл бұрын
there is no syntax or runtime error bt data is not getting placed in jtable
@gunjanjha9123
@gunjanjha9123 4 жыл бұрын
i am getting StackOverflow error while using this code will you pls help me.
@saritalad8923
@saritalad8923 6 жыл бұрын
good but voice is very low
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks for feedback. I will manage in the comming videos
@_imatto8719
@_imatto8719 5 жыл бұрын
bro how to do like if i login with indra as an example i see some content, but if i login with admin i see whole content?
@rahulkumar-ds7pi
@rahulkumar-ds7pi 7 жыл бұрын
Hello sir I am working on an application where I want to move a row data from one table to another table using a button. Please guide me
@kashiking7936
@kashiking7936 6 жыл бұрын
I am getting error getModel in DefaultTableModel.
@HausToys
@HausToys 7 жыл бұрын
please add a date option
@lloydtatendachimanga1424
@lloydtatendachimanga1424 5 жыл бұрын
Haus Toys instead of string or int just type date.
@medonnaparker7294
@medonnaparker7294 6 жыл бұрын
Nice work
@indrasubedi
@indrasubedi 6 жыл бұрын
Thank you
@ΠαναγιώτηςΚαμπάνης-υ4ξ
@ΠαναγιώτηςΚαμπάνης-υ4ξ 5 жыл бұрын
Awesome tutorial , really helpful!!
@lakshmisheshadri6263
@lakshmisheshadri6263 7 жыл бұрын
Bro need your help I need to display data in subsequent j frames how to do
@kansyakar12
@kansyakar12 6 жыл бұрын
sir mujhe SQL table ko eclipse table me data ko dekhana hai to kya kren?
@kansyakar12
@kansyakar12 6 жыл бұрын
sir aaplog keval netbeen pr video banate hain . eclipse pr bhi bnaya kijiye. eclipse jatable and sql ka eak video banayiye sir please
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks for your feedback. I will try to manage soon
@simoyland
@simoyland 4 жыл бұрын
thank you helped me a lot!
@ปิยะวัฒน์ขนานขาว
@ปิยะวัฒน์ขนานขาว 6 жыл бұрын
Thank You
@herbertmarumbu9517
@herbertmarumbu9517 Жыл бұрын
Good love it
@jayamadhukachandramal4328
@jayamadhukachandramal4328 3 жыл бұрын
thanks
@NamNguyen-fn5td
@NamNguyen-fn5td 5 жыл бұрын
thanks for your video !!
@amit_kaushal5701
@amit_kaushal5701 5 жыл бұрын
Bhai null pointer exception AA Raha hai....database connect Nahe ho Raha hai
@bassirisawadogo8101
@bassirisawadogo8101 3 жыл бұрын
incompatible type int cannot be converted to org.omg.CORBA.Objet the row table reports a compatibility problem.
@dogthatlooksattaxevaders6325
@dogthatlooksattaxevaders6325 7 жыл бұрын
my array list is not working help
@khadakbdrbudha3450
@khadakbdrbudha3450 6 жыл бұрын
Nice videos.
@musharraffaheem3778
@musharraffaheem3778 6 жыл бұрын
At 18:50 , I have an error of incompatible conversion : String cannot be convert to Object
@indrasubedi
@indrasubedi 6 жыл бұрын
Please check the sql query.
@RachanaPadmanabhan
@RachanaPadmanabhan 6 жыл бұрын
Am having error has strings cannot be converted into int
@RachanaPadmanabhan
@RachanaPadmanabhan 6 жыл бұрын
The error is in the line user=new User.....
@indrasubedi
@indrasubedi 6 жыл бұрын
@@RachanaPadmanabhan Did you create the user class?
@RachanaPadmanabhan
@RachanaPadmanabhan 6 жыл бұрын
@@indrasubedi yeah I have done...thanks fr the video
@yodahezerihunkassa160
@yodahezerihunkassa160 3 жыл бұрын
Thank You man!
@aaronjay300
@aaronjay300 6 жыл бұрын
Thanks bro.
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks for your feedback.
@kansyakar12
@kansyakar12 6 жыл бұрын
mai eclipse se values ko SQL me insert kr le rha hun lekin use apne eclipse me us SQL record ko nhi dekh pa rha hun please help sir
@seanpaulo6761
@seanpaulo6761 5 жыл бұрын
Thank you so much!
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Welcome my tutorials
@farrukhhussain8211
@farrukhhussain8211 5 жыл бұрын
Good
@felex_benjamin
@felex_benjamin 6 жыл бұрын
thanks a lot for this
@tomaslopez9999
@tomaslopez9999 4 жыл бұрын
Thank you!
@UVizGaming
@UVizGaming 6 жыл бұрын
Great. Thanks bro.
@sethayous7917
@sethayous7917 4 жыл бұрын
I got error on public void show_user(){ ArrayList list = new userList(); } Please help
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Welcome my java tutorials
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
hello im getting an error like this javax.swing.JCheckBox.awt.EventQueue.invokeLater
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
can u help me with that
@indrasubedi
@indrasubedi 7 жыл бұрын
You have got the error on checkbox.please be sure that you have done as like that of mine
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
Ya ok thank u I got it but everything is inserted but sno is not inserting
@indrasubedi
@indrasubedi 7 жыл бұрын
no need to insert sno manually. just auto increment it from database.
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
Ok thanks
@festivo2420
@festivo2420 7 жыл бұрын
where did you get jTable_Display_User.getModel();
@indrasubedi
@indrasubedi 7 жыл бұрын
jTable_Display_User is the name of jtable and getModel() is used by a JTable when no table model is specifically defined by the programmer
@festivo2420
@festivo2420 7 жыл бұрын
thank you brother
@tubagusputra5788
@tubagusputra5788 7 жыл бұрын
I got an error!!
@lifeissoft
@lifeissoft 6 жыл бұрын
Good work, keep going.
@oanaghicajanucristina
@oanaghicajanucristina 2 жыл бұрын
I LOVE YU THANK YOU SO MUCHHHHHHHHHHHHH
@shahidmehboob8862
@shahidmehboob8862 7 жыл бұрын
great video
How to Use JDateChooser or JCalendar in Java
17:54
Indra Subedi
Рет қаралды 126 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 75 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 85 МЛН
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
What is SQL? [in 4 minutes for beginners]
4:26
Danielle Thé
Рет қаралды 1,9 МЛН
JTable in JAVA Swing | ADD Data into JTable
16:25
Knowledge to Share
Рет қаралды 153 М.
Learn SQL + Database Concepts in 20 Minutes
24:34
Chandoo
Рет қаралды 73 М.
Insert data into SQL server using java Part -1
9:21
Indra Subedi
Рет қаралды 84 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 84 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 75 МЛН