Hello I want to Display fetched records in a List Component
How to do that?
Please help..
I am using netbeans..
Printable View
Hello I want to Display fetched records in a List Component
How to do that?
Please help..
I am using netbeans..
You can read it in the following tutorial: How to Use Lists (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components).
I read that..
But I didn't find any details about fetching records and place them in list...
Can you please tell where it is ?
May be I didn't look..
If fetching data is reading data from the database, have you read the JDBC Tutorials? Trail: JDBC(TM) Database Access: Table of Contents (The Java™ Tutorials)
sorry sir I am not getting it what I want exactly...
Can you explain?
Now there is a table component in netbeans..
so can you just explain me how to insert records in that component from an external database?
Use JDBC to get the data, converting it into a suitable model. Pass that List<YourModel> to the JTable, via a TableModel.
There are three bits there.
The JDBC part.
YourModel.
The TableModel.
So start where you feel comfortable, then try and work on the other bits.
When you hit a problem then come back and ask a more specific question (with your code that you are having trouble with).
Thanks for the solution I have got it ..
please explain me how do I open multiple forms under one main window?
Is it possible??