This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inegrating jdbc and gui swing/awt interface

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have gui built suing swing and gui, can anyone point me to tutorials etc on how to incorporatea jdbc connection so that data from dbase can be displayed within gui ?

cheers

chris
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JDBC tutorial at Sun is as good a place as any to start.
 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i've looked at jdbc a bit and set up a connection by compiling a class etc

its more to do with incorporating the class which makes the connection to the dbase. for example if i'm within a swing / awt JPanel class do simple instantiate a constructor for the jdbc connector class ?

cheers

chris
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My suggestion would be to become familiar with the MVC model in which your data layer (the "M") is completely agnostic of the UI layer. The "inegrating" should be very loosely coupled.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic