load from text into JTable
i am creating a program to help a friend handle his client dataBase (is not very big)
and i couldn't find a proper way to load file content into a JTable (or even a simple array)
what am asking maybe an algorithm problem more than a java problem,
let's say this is the content of my text file
i figured how to define the table size, colomn is already known and rows is how many stars do i have in that text, what i can't do is how to fill the table ?
i know it must be an easy solution for this (am sure there is more than once) and it's 4.30am here now am really dead now 8-x
soooo can you please help :o
Re: load from text into JTable
Swing's JTable implements MVC pattern. That is, all the manipulations with data must be done from the model. You can get a model of a table using a getter.