wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61090
    
  66

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inegrating jdbc and gui swing/awt interface