DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Need Code for To-Do list in java with mysql (http://www.daniweb.com/forums/thread143530.html)

kevinpeterson22 Sep 2nd, 2008 4:00 am
Need Code for To-Do list in java with mysql
 
Hi

I am new to java and j2ee

Can anyone send me the code for to-do list creation in java swings and mysql DB

i want to create a to-do list in jsp .

and i feel that if i modify the code from java swings to jsp then i will get a new exp from yourside

for this exp i have to change my mistake in coding part

so i need the code (to create to-do list with java swings and mysql DB)



Regards
Kevin

javaAddict Sep 2nd, 2008 4:41 am
Re: Need Code for To-Do list in java with mysql
 
JSPs have nothing to do swing. (That was my first mistake). Meaning that you cannot modify your code to convert swing to JSP.
The only thing you can keep the same are the classes. Everything that is GUI related has to go. Which is why we don't implement too much code in the class that displays the GUI and we use methods from other classes.
If you have already done this in swing I hope that you have kept the reading and writing to the database in separate classes so you can reuse them.

Start by learning HTML, in order to create the GUI:
http://w3schools.com/

Then download an IDE like: Netbeans

As for mySql, you can look for tutorials at the internet or examples in this forum

kevinpeterson22 Sep 2nd, 2008 5:42 am
Re: Need Code for To-Do list in java with mysql
 
Hi

Thanks for the reply to this mail.

i have written the code for to-do list(java swings) and it is stored in the file (data.dat)

but i want to-do list stored in mysql database, for this how can i achieve.

if i send this code to you, then can you alter the code to store the data in MYSQL instead of storing file.

coz if you change the change the code to stored in mysql Db then hereafter i can get an idea from you

Regards
Kevin


Quote:

Originally Posted by javaAddict (Post 682778)
JSPs have nothing to do swing. (That was my first mistake). Meaning that you cannot modify your code to convert swing to JSP.
The only thing you can keep the same are the classes. Everything that is GUI related has to go. Which is why we don't implement too much code in the class that displays the GUI and we use methods from other classes.
If you have already done this in swing I hope that you have kept the reading and writing to the database in separate classes so you can reuse them.

Start by learning HTML, in order to create the GUI:
http://w3schools.com/

Then download an IDE like: Netbeans

As for mySql, you can look for tutorials at the internet or examples in this forum


masijade Sep 2nd, 2008 6:15 am
Re: Need Code for To-Do list in java with mysql
 
See, javaAddict. That's all this guy is looking for, a free ride.

peter_budo Sep 2nd, 2008 7:15 am
Re: Need Code for To-Do list in java with mysql
 
Java Sun website, JDBC(TM) Database Access

jwenting Sep 2nd, 2008 8:38 am
Re: Need Code for To-Do list in java with mysql
 
step 1: read the community guidelines
step 2: tell your teacher that because of your laziness you're not going to get your assignment done in time
step 3: learn Java, you now have an extra year to do so after you were failed for the course.

javaAddict Sep 2nd, 2008 9:09 am
Re: Need Code for To-Do list in java with mysql
 
Follow the link I gave you for html and peter_budo's link for JDBC.

I would suggest first to get familiar with JDBC and design your database. (download mySQL server and some tutorials about creating tables and schemas. perhaps peter_budo's link will help)

And after you are done with html try to learn JPS. If you get familiar with the terms: "request" and "response" you will have no problem


All times are GMT -4. The time now is 6:28 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC