This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pasting Data Base results

 
Luis Canizares
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how to show a complete result grid into any object of Swing or AWt directly like in Visual Basic (I dont like it so much)?
Please let me know your answers

Good luck folks !!
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean like a JTable? You may also want to look at JDNC which includes data bindings for a JTable to (arguably) make things easier. If you are unfamiliar with JTables I would recommend holding off on JDNC and getting the basics down first though.
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the JTable constructor which accepts two Vectors (one for the rows of data, one for the column names...take a look at the API as suggested above. You can populate these Vectros easily from the ResultSet object of a JDBC query.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic