File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting single column values of database table into multiple columns of jtable and do comparison

 
Narendra kodli
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am struck ed in inserting single column values of database table into multiple columns of jtable and doing comparison for selecting greater values in each row.

Is their any query that splits column values. here i am attaching the code please give me the solution.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and what do you expect us to do with those 125 lines of code?

here's a very simple way of getting a solution to your problem:
1) create a new program
2) just a JTable in a JScrollPane in a JFrame
3) table has 2 rows, 2 columns
4) fill the 4 cells with 'comparable' data
5) hard-code some data to simulate the resultset (array, arraylist, whatever)

now try to add the hard-coded data to the table and do your comparison.

if you can't get that to work, you will have a very short/compilable/runnable
program to post. also post what it is doing vs what you want it to do
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic