Hello,
I want to create a JTable which "Analysis","Date" and "Price" the names of columns in header. Here's a piece of my code :
So, the value of Analysis and Price were stored in my Data Base, and the Date get the value of the current day.
How can i create this JTable and how can i set the value into it ?
As a result i obtain a Table with 3 coloumn "A","B" and "C".I don't know hence these name comes!!!
Should you please to know how can i put my columns names "Analyse", "Date d'analyse","Prix" as a header in my Table?
Well done. You are on the right track.
1) Why did you extend abstract table model? Try extending Default table model.
2) Override the getColumnName() to return the name you desire (from your columnNames)