Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: java & mysql connectivity..

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Location
    Jharkhand, India
    Posts
    2
    My Mood
    Cool
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default java & mysql connectivity..

    hello everyone,
    I am supposed to create an application which connects database named 'student' in mysql storing student's record & marks; with NetBeans IDE & work out & display the record & marks as per user's choice in java windows. For this, I'm required to use total of 8 frames alongwith many buttons & other swing controls. The details are in the attached images...
    scan0003.jpgscan0001.jpgscan0002.jpg

    Upon clicking Ok button in Frame1 (considered password entered is valid), Frame1 hides & Frame2 should open up.
    When user clicks any of the buttons in Frame2 on either StudentRecord panel or StudentMarks panel, then accordingly Frames3,4,5,6,7 & 8 should be opened.

    Somebody plz help me in linking all the frames together..
    Thank you.


  2. #2
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: java & mysql connectivity..

    Hi, I would suggest a solution like this:
    - Have a main program that manages all the frames.
    - Each frame should have a loop that exits until OK/Cancel is pressed, and have a public method that gives some output for the main program.
    - The main program displays a frame, gets output from it, then shows the next frame...

    Hope you get the idea.

  3. The Following User Says Thank You to nickyc For This Useful Post:

    itssnigdha (February 4th, 2012)

  4. #3
    Junior Member
    Join Date
    Feb 2012
    Location
    Jharkhand, India
    Posts
    2
    My Mood
    Cool
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: java & mysql connectivity..

    thank u so much..
    But can u plz let me know the statements needed to establish connection b/w the frames & mysql database.. Also where & in which frame do i need to write those statements.??
    Thanks again..

Similar Threads

  1. JDBC connectivity with MySQL
    By naqib in forum JDBC & Databases
    Replies: 1
    Last Post: January 14th, 2012, 10:14 AM
  2. java + mysql update
    By A4Andy in forum JDBC & Databases
    Replies: 6
    Last Post: August 26th, 2011, 09:04 PM
  3. Java.jar and Mysql.jar
    By kurt-hardy in forum Java Theory & Questions
    Replies: 1
    Last Post: January 27th, 2011, 09:48 AM
  4. Java Applet and MySQL
    By Terillius in forum JDBC & Databases
    Replies: 4
    Last Post: August 21st, 2010, 10:05 PM
  5. Connectivity problem:MySQL and Java
    By Pragya in forum JDBC & Databases
    Replies: 2
    Last Post: January 22nd, 2010, 03:58 AM