This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT Table - sum one column and save all content in MySQL table.

 
Tobias Leon
Greenhorn
Posts: 22
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there everyone !!!

I want to do two things:

1. Get the sum of the column "Price".
2. Save all table's content in a MySQL table. (almost done but wrong way)

For the second issue I try this:


That code only saves the last row.

I fill my table like this:

I fill my table in a wrong way ??? What can I do ???
Thanks a lot !!!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SWT gets very little attention here.

I was going to direct you to the Eclipse forums, but I see you posted there a week ago.

http://www.eclipse.org/forums/index.php/m/846683/

if you still had problems after being pointed to the examples, you should have reposted there.
 
Tobias Leon
Greenhorn
Posts: 22
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot !!! Maybe I should replace my SWT Table for a JTable.
 
Rob Spoor
Sheriff
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tobias, please BeForthrightWhenCrossPostingToOtherSites.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic