You are on page 1of 12

SESSION-2010-2011 TOPIC:PROJECT ON INFORMATICS PRACTICES USING NETBEANS AND MY-SQL

NAME ADITYA KUMAR SINGH CLASS- 11TH E ROLL NO- 03

I owe a great many thanks to great many people who helped and supported me during the making of this project My deepest thanks to my teacher , Mr. SANJOY KUMAR MAJUMDER , the guide of the project for guiding and correcting various documents of mine with attention and care. He has taken pain to go through the project and make necessary correction and when needed. I express my thanks to the principal of, LOYOLA HIGH SCHOOL, PATNA for extending his support. My deep senses of gratitude to my parents and my elder brother for their support and guidance .I extend my heartfelt to my family and well wishers. I would also thank to my friend Ali, Abhishek and Shubham without whom this project would have been a distant reality.

Netbeans To create a program in Netbeans for the School Library for issuing a book.

My-Sql To create Database consisting a Table showing the Details of the student.

Name: Aditya kumar singh Roll No.: 03 School: Loyola High School

Class: XI E

This is certified to be the bonafide work of the student in this Informatics Practices project work during the academic year 2010/2011.

. Teacher In-charge

Date :

Sr.NO. 01 02 03 04

Title Acknowledgement Objective Certificate Netbeans Program Output Source Properties My-Sql Output Queries Bibliography Conclusion

Page No. 02 03 04 06-08 06 07 08 09-10 09 10 11 12

05

06 07

SOURCE
CODE FOR COMBO BOX 1 private void bookActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: String txt = (String)book.getSelectedItem(); int i = 0; int length = book.getItemCount(); boolean exists = false; for (; i< length ; ++i){ String item = (String) book.getItemAt(i); if (item.equals(txt)){ exists = true; break; } } if (exists == false) book.addItem(txt); lbmsg.setText("Selected book :"+txt); } CODE FOR COMBO BOX 2 private void dayActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: String txt = lbmsg.getText(); String dur = (String)day.getSelectedItem(); lbmsg.setText(txt +" ; "+ "\t Selected duration :"+dur); CODE FOR BUTTON CLEAR private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: tna.setText(""); tclass.setText(""); troll.setText(""); lbmsg.setText(""); } CODE FOR BUTTON EXIT private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: System.exit(0); 7

PROPERTIES

ITEM USED JLABEL 1 JLABEL 2 JLABEL 3 JLABEL 4 JLABEL 5 JLABEL 6 JLABEL 7 JTEXT FIELD 1 JTEXT FIELD 2 JTEXT FIELD 3 COMBO BOX 1

PROPERTIES EDIT TEXT EDIT TEXT EDIT TEXT EDIT TEXT EDIT TEXT EDIT TEXT EDIT TEXT VARIABLE NAME EDIT TEXT VARIABLE NAME EDIT TEXT VARIABLE NAME EDIT TEXT VARIABLE NAME EDIT TEXT VARIABLE NAME EDITABLE FONT EDIT TEXT VARIABLE NAME EDITABLE FONT

VALUE SCHOOL LIBRARY WINDOW NAME CLASS ROLL NO WHICH BOOK DO YOU WANT? HOW MANY DAYS? lbmsg tna tclass troll book TRUE TAHOMA day FALSE TAHOMA

COMBO BOX 2

QUERIES
mysql> create database SCHOOL; Query OK, 1 row affected (0.02 sec) mysql> use SCHOOL; Database changed mysql> create table info( -> SNo int(3), -> Name varchar(20), -> Class varchar(20), -> Rollno int(3), -> Book varchar(30), -> Days int(3) ); Query OK, 0 rows affected (0.08 sec) mysql> INSERT INTO info values (1,'Aditya','XIE',3,'Da vinci code',5); Query OK, 1 row affected (0.02 sec) mysql> INSERT INTO info values (2,'Ali','XIE',29,'Two States',7); Query OK, 1 row affected (0.02 sec) mysql> INSERT INTO info values (3,'Abhishek','XIE',59,'Harry potter',10); Query OK, 1 row affected (0.02 sec) mysql> INSERT INTO info values (4,'Chinmay','XIE',10,'Angel and Demons',12); Query OK, 1 row affected (0.02 sec) mysql> INSERT INTO info values (5,'Subham','XIE',43,'Godfather',14); Query OK, 1 row affected (0.03 sec) mysql> select* From info;

To make this Project a success I have taken the help of following sources. Informatics Practices Class 11th

Author : Sumita Arora Publisher : Dhanpat Rai &Co.


Informatics Practices Class 11th

Author : Sangeeta Panchal,Alka Sabharwal Publisher : Oxford University Press Internet

10

In the end of the project I come to know about the various function of Netbeans and Mysql. This project helped me to clear my doubts of Netbeans and Mysql .this project help me to design program with extraordinary techniques and function. In Netbeans I learn how to create a java program by designing the layout and writing its code to make it a complete program. in My-sql I learn to create table with the help of queries. This project was a lot of fun. I was confused whether I would able to complete this project or not because of the pressure of examination. But I proud myself that I managed some time to completed my project before the due date. Its forced me to think in new ways about creating this project more innovative and attractive.

11

12

You might also like