Good mornigns
I have a problem to initialize the jtable from a FOR with BD or an array.
My problem is the example tableFilterDemo.java, I need the funcionality of this,
but when i want load data of my BD or an arraylist i have the problem.
I need load the array of objects with a FOR getting all the lines of file or rows of table
Okay, I think I might understand what your question is.
You aren't asking how to initialize a JTable from an array of arrays, you already know how to do that. You are asking how to produce an array of arrays from data which is in a database.
Paul Clapham wrote:Okay, I think I might understand what your question is.
You aren't asking how to initialize a JTable from an array of arrays, you already know how to do that. You are asking how to produce an array of arrays from data which is in a database.
Am I right?
at last someone understands me. YES it is my problem. loop for yes
Okay. Your question is nothing to do with initializing the table from an array, it is all about creating that array. So using the title "Initialize table with array of objects" was very misleading and that is why nobody understands it.
Now I am going to make another guess. You cannot put the data from your database into an array, because you don't know how big the array should be. Is that right?
Paul Clapham wrote:Okay. Your question is nothing to do with initializing the table from an array, it is all about creating that array. So using the title "Initialize table with array of objects" was very misleading and that is why nobody understands it.
Now I am going to make another guess. You cannot put the data from your database into an array, because you don't know how big the array should be. Is that right?
at last someone understands me. YES it is my problem. loop for yes
Excuse me, you where given the answer to your question hours ago (in one of your many cross postings), if you would take the time to read your answers.
You don't understand how a TableModel works and the answer was to forget about Arrays because they are NOT dynamic.
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
a bit of art, as a gift, the permaculture playing cards