aspose file tools
The moose likes JDBC and the fly likes inegrating jdbc and gui swing/awt interface Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 56174
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: jrebel
 
subject: inegrating jdbc and gui swing/awt interface
 
Similar Threads
Need some direction
Swing certification
java.lang.OutOfMemory
How to navigate in a standalone application
Java GUI Testing Framework/Integration