Reading the values of csv file and displaying it in AWT table
posted 5 years ago
I want to read the values of csv file and display that in AWT table when start button is pressed. Pressing stop button should stop reading the values. Reset button must be used to clear the table. I am new to AWT. Here is what i have tried.
What I get is not in the form of table. After clicking start button I get blank window. But I want to display the data. Thank you
There is no such thing as an AWT table. There is JTable but that's part of Swing. Right now it seems as if you want to use that, but you shouldn't mix AWT and Swing components. If I were you I'd switch to Swing completely.
You read your data into an ArrayList, convert that into an Object, and then you completely ignore this Object. Instead you use two Vectors which have never been modified after initialization, therefore both being completely empty.