Results 1 to 3 of 3
  1. #1
    pardhu is offline Member
    Join Date
    Oct 2011
    Posts
    16
    Rep Power
    0

    Default jdbc with swings

    can we use jdbc in swings ? if yes how. plz explain me........

  2. #2
    jobi is offline Member
    Join Date
    Sep 2011
    Posts
    14
    Rep Power
    0

    Default Re: jdbc with swings

    Yes. It is possible.

    Class.forName(driver name); // specify the driver
    Connection connection = DriverManager.getConnection(connection url,username,password);

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default Re: jdbc with swings

    Quote Originally Posted by pardhu View Post
    can we use jdbc in swings ? if yes how. plz explain me........
    Yes we can; just because those two frameworks have nothing to do with eachother; e.g. a Swing component doesn't care where a String it has to display came from and jdbc doesn't care what happens to a String (or whatever) it has just fetched from a database.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. jdbc with swings
    By pardhu in forum JDBC
    Replies: 1
    Last Post: 10-22-2011, 06:16 PM
  2. jdbc with swings
    By raghu9198 in forum New To Java
    Replies: 3
    Last Post: 06-24-2009, 11:42 PM
  3. awt and swings
    By masa in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2008, 08:09 AM
  4. Replies: 0
    Last Post: 04-01-2008, 11:17 AM
  5. Replies: 0
    Last Post: 09-28-2007, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •