• 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

how to get a specific column from ResultSet? Help

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys

I know how to get a colum with JDBC and show it's data in JList or JTables.

But I want to query like (SELECT * FROM MYTABLE) and this table contains 15 columns.

I want to show only one column in JList and when you click on an Item in JList the relative data should be shown in other components like JTextFiels.

for example say customer table. has firstname, lastname, salary, ......

the JList should only show the last names. when you click on a customers last name, first name salary ............. should be shown in other components.

Can you Help? if Yes then Please

cheers
Farhad
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic