**hi guy recently i created one AbstracttableModel and one class named Veiculo, and i created a vector to hold Veiculo's data, i copied veiculo's data to text file named "UniVeiculo.txt", now i want read and show some data from UniVeiculo.txt to AbstractTableModel.
i tryed use this code:
String cod="",mark="",year="",color="",model="",plate="",owner="",
List<Veiculo> carro = new ArrayList<Veiculo>();
Veiculo car = new Veiculo();
try{BufferedReader br = new BufferedReader(new FileReader(new File("UniVeiculo.txt")));
cod=br.readLine();
while(cod!=null){
car.Marca=mark;
car.Modelo=model;
car.Placa=plate;
car.Dono=owner;
car.Resid=adress;
carro.add(car);
JTable tabela = new JTable(new ModeloTabela(carro));
cod=br.readLine();
mark=br.readLine(); year=br.readLine();color=br.readLine(); model=br.readLine();plate=br.readLine(); owner=br.readLine();
adress=br.readLine(); type=br.readLine(); gbox=br.readLine(); seats=br.readLine(); displacement=br.readLine(); country=br.readLine(); space=br.readLine();
}br.close();
}catch(IOException evt){JOptionPane.showMessageDialog(null," Error ");}
return carro;
}
help me.**