This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes inegrating jdbc and gui swing/awt interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "inegrating jdbc and gui swing/awt interface" Watch "inegrating jdbc and gui swing/awt interface" New topic
Author

inegrating jdbc and gui swing/awt interface

Chris Davies
Ranch Hand

Joined: Feb 26, 2003
Posts: 110
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


One day all greenhorns will run free ...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The JDBC tutorial at Sun is as good a place as any to start.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Chris Davies
Ranch Hand

Joined: Feb 26, 2003
Posts: 110
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

Joined: Jan 10, 2002
Posts: 60794
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: inegrating jdbc and gui swing/awt interface
 
Similar Threads
java.lang.OutOfMemory
Java GUI Testing Framework/Integration
Swing certification
How to navigate in a standalone application
Need some direction