943,511 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2886
  • Java RSS
Sep 2nd, 2008
-2

Need Code for To-Do list in java with mysql

Expand Post »
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
Similar Threads
Reputation Points: 6
Solved Threads: 0
Newbie Poster
kevinpeterson22 is offline Offline
10 posts
since Aug 2008
Sep 2nd, 2008
0

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
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007
Sep 2nd, 2008
0

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


Click to Expand / Collapse  Quote originally posted by javaAddict ...
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
Reputation Points: 6
Solved Threads: 0
Newbie Poster
kevinpeterson22 is offline Offline
10 posts
since Aug 2008
Sep 2nd, 2008
0

Re: Need Code for To-Do list in java with mysql

See, javaAddict. That's all this guy is looking for, a free ride.
Last edited by masijade; Sep 2nd, 2008 at 6:15 am.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Sep 2nd, 2008
-1

Re: Need Code for To-Do list in java with mysql

Java Sun website, JDBC(TM) Database Access
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,653 posts
since Dec 2004
Sep 2nd, 2008
0

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 2nd, 2008
0

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
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: P2P file sharing
Next Thread in Java Forum Timeline: word/line/character count in files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC