Author Topic: Library program in JAVA  (Read 4359 times)

0 Members and 1 Guest are viewing this topic.

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 117
  • Cookies: -79
  • Unleash the Hacker within you
    • View Profile
Library program in JAVA
« on: December 01, 2012, 03:09:14 pm »
We was given a project to make a program for library management(for keeping the record of who issues the book and whatever..). All we have to do is to make a database of all the books,children and what so ever.Well I don't know how to connect my JAVA GUI form to MySQL?I don't know JAVA much and need your help :-[ :-[ .It would be a very simple program which would tell all the details of the book if we search by typing the book's name or library code or if we type the name of any student, then it will show all the details of that student about which book he had issued. Plz. help  :'( :'(
Trust is like a piece of paper.Once it is crumbled,it can never be perfect.

Offline lordarnoud

  • Peasant
  • *
  • Posts: 112
  • Cookies: 6
    • View Profile
Re: Library program in JAVA
« Reply #1 on: December 01, 2012, 03:40:28 pm »
Try looking up "JDBC" for java :) At least that's what I used for my code.

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 117
  • Cookies: -79
  • Unleash the Hacker within you
    • View Profile
Re: Library program in JAVA
« Reply #2 on: December 01, 2012, 04:07:11 pm »
Try looking up "JDBC" for java :) At least that's what I used for my code.
Thanks man 8) 8)
Trust is like a piece of paper.Once it is crumbled,it can never be perfect.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Library program in JAVA
« Reply #3 on: December 01, 2012, 06:27:50 pm »
If this is a school assignment and it doesn't state that you have to use SQL database and it doesn't have to be persistent, then just use ArrayLists. Because database, by definition is:
Quote
A database is a set of data that has a regular structure and that is organized in such a way that a computer can easily find the desired information.

If this is some program that the school will use, I advise you to step away from it :P

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 117
  • Cookies: -79
  • Unleash the Hacker within you
    • View Profile
Re: Library program in JAVA
« Reply #4 on: December 02, 2012, 10:34:27 am »
If this is some program that the school will use, I advise you to step away from it :P
well I am not very interested in this project but I am doing this because it will give me a chance and a goal to learn more. ::)
And it has to be persistent.
 
« Last Edit: December 02, 2012, 10:38:00 am by Dark Nebulae »
Trust is like a piece of paper.Once it is crumbled,it can never be perfect.