Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By Tolls

Thread: help me to install sql database to communicate with my swing gui.

  1. #1
    adiotrox is offline Member
    Join Date
    Feb 2012
    Posts
    43
    Rep Power
    0

    Question help me to install sql database to communicate with my swing gui.

    Hi,
    I want to make a simple java app using swing,
    functions(phone book):
    1.enter your name.
    2.enter your phone number.
    3.save it.
    4.show all names.

    i can develop the gui using swing but now i want a database in my computer where all of the above details such as a person's name with his/her phone number can get saved in the database and by clicking the "show all names" button all the names stored in the database must be displayed in a gui window.

    what i can do:
    Develop the gui by swing.

    what i want to know:
    1.whether to install sql server or database since i want to use my same computer for datbase and front end no internet stuff.
    2.how to get the free sql and install it on my computer.
    3.how to make the connection between my swing gui and database.

    please help i am newbie.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: help me to install sql database to communicate with my swing gui.

    If it's a single app using the database, that is one user, then pick a db that can be embedded, like JavaDB/Derby or HSQL.
    That way it's all in one.
    Derby (JavaDB) comes with the JDK (though not the JRE, so you'll have to distribute the relevant jar files with your app), so might be the quickest to try and use?

  3. #3
    adiotrox is offline Member
    Join Date
    Feb 2012
    Posts
    43
    Rep Power
    0

    Default Re: help me to install sql database to communicate with my swing gui.

    Did i forgot to mention that i have no single idea about this database stuff, i read little bit about sql so that is the only thing in my mind and if i am developing this single app whose database is also installed in the same system then is SQL RDBMS is sufficient or Sql server is also required??

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: help me to install sql database to communicate with my swing gui.

    Derby is a database.
    It is one that can be setup to work inside your application, which can be a lot easier.
    So no, you do not need another database.

    If you are new to this then you really need to find a tutorial on it.
    The Oracle JDBC one is possibly a good idea.
    adiotrox likes this.

  5. #5
    adiotrox is offline Member
    Join Date
    Feb 2012
    Posts
    43
    Rep Power
    0

    Default Re: help me to install sql database to communicate with my swing gui.

    i have installed microsoft sql server management 2005 express but don't know how to give a server name or register it and start it?? can you please help

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: help me to install sql database to communicate with my swing gui.

    Not really.
    I don't use SQL Server very often.

    It also strikes me as a rather excessive choice of db for this kind of app.

  7. #7
    adiotrox is offline Member
    Join Date
    Feb 2012
    Posts
    43
    Rep Power
    0

    Default Re: help me to install sql database to communicate with my swing gui.

    can you please send me the exact link of downloading derby database and help me to configure it.

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: help me to install sql database to communicate with my swing gui.

    Derby aka JavaDB is bundled with the JDK. You don't have to download anything.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: help me to install sql database to communicate with my swing gui.

    And Google will tell you all you need to know.
    It's good practice to be able to track these things down.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 04-14-2011, 12:35 PM
  2. Uploading a image to a database via swing
    By hacker9116 in forum JDBC
    Replies: 3
    Last Post: 03-29-2011, 11:35 AM
  3. Getting and Displaying Swing Components From DataBase
    By vivekkumar in forum AWT / Swing
    Replies: 1
    Last Post: 07-27-2010, 03:32 PM
  4. how to insert sql file into database using swing
    By ravi.virgoo@gmail.com in forum AWT / Swing
    Replies: 1
    Last Post: 11-22-2009, 03:01 AM
  5. Replies: 0
    Last Post: 11-06-2007, 02:16 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
  •