This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes SWT Table - sum one column and save all content in MySQL table. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT Table - sum one column and save all content in MySQL table." Watch "SWT Table - sum one column and save all content in MySQL table." New topic
Author

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

Tobias Leon
Greenhorn

Joined: Apr 17, 2012
Posts: 22

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 !!!


Murphy's Law
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Apr 17, 2012
Posts: 22

Thanks a lot !!! Maybe I should replace my SWT Table for a JTable.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Tobias, please BeForthrightWhenCrossPostingToOtherSites.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT Table - sum one column and save all content in MySQL table.