• 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

Resultset

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
The code below pulls out the columnnames from a database and diplays them in a JList. How can I get the JList to display the data that is in a columnname called ben?
Thanks
Ben
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since this is more about the Swing than the JDBC, moving to the Swing forum.
 
ben riches
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry if I sound rude, but is there anyone who can help me with this please?
Thanks
Ben
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear Bibeault: It's really a jdbc/sql question (and you should probably fit to the naming conventions here ... har, har, har).

Note: You may not learn sql entirely from asking in a forum.
Get a tutorial, a book, a teacher.
And: shouting! don't catch Exceptions with silent ignore!
Don't!
Who silently catches Exceptions will be silently get cought by Exceptions.
And a minor question: From how many examples did you patchwork the code?
I would say: 5
And a last question:
Where did you find that 'ParanoidGetUntilItWorksButOnlyOnce_SmellPattern':

I would suggest: Get rid of it!
The best termin for that is: Today.
 
ben riches
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did not patchwork my code as I used Visual Age for Java.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorting your imports, you find something like that:

and a lot more...


And look at 'getArPane ()'.
Which exception do you want to catch?
'Throwable'.
Every exception.
But which exception may occour?
Nearly no one!
Perhaps an OutOfMemoryException.
And what will happen then?
Tell me!
And tell me, which other exception you want to catch!
(edited for typo)
[ April 03, 2004: Message edited by: Stefan Wagner ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic