• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic