0

Hello Everyone!!!

Does anyone here knows how to display the content of the database in a JTextArea?

For example....

In mydatabase, I have a column name 'username' and I want to display all the contents of that 'username' in JTextArea..

What shall I do and what classes I need to have in order to perform this..
I hope , you can give me a sourcecode or even sites to where I can learn about this one.

I am currently working in java and mysql database...
YOUR HELP IS HIGHLY APPRECIATED>>>
THANK YOU...

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by javaAddict
0

And have a class that reads from the database and gets the data you want to display in a String, or an array, or in whatever you want.
You call that class in your gui and display the results like peter_budo said.
As you can a lot of things are involved. Where are you having problems? In reading the database or displaying the gui.
Remember, don't put all in one class. Try to separate functionalities. One class for the DB, one for the GUI. Test both before you start calling one into another

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.