Hello friends,
I have a problem about JLabel

I want to insert a data from database into my JLebel.setText() method.Please help me

Recommended Answers

All 2 Replies

Member Avatar for Codeslinger

you can use BufferedReader if you want ..

It seems that your problem is with reading from the database. That has nothing to do with gui. All you need is to read the data that you want and then use them in any way you want (pass it as parameter at the setText method).

Search for tutorials and examples in this forum on how to read data from database. How is your sql. You might want to study sql queries as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.