• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading the values of csv file and displaying it in AWT table

 
sahana mithra
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!