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 2 of 2

Thread: java database project help?

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post java database project help?

    i want help from u to develop my project which is in java swing with ms access database connectivity...
    these is my code when i click on ok then those entry which we are entered that must be save in database and when i click on add paper button then only multiple entries of paper only updated in database but customer name and other entry must same only paper entry change?
    how to solve these problem?
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public abstract class New_Customer extends JFrame implements ActionListener
    {
    JTextField textFieldId;
    JTextField textFieldName;
    JTextField textFieldContactNo;
    JLabel l1;
    JLabel l2;
    JLabel l3;
    JLabel l4;
    JLabel l5;
    JLabel l6;
    JComboBox combo;
    String course[] = {"Navakal","SandhyaKal","Pudhari","MidDay","Inqlab ","BusinessLine","Mumbai Samachar","GujrajSamachar","KarnatakMalla","Vartah ar","PunyaNagari"};
    JButton b1;
    JButton b2;
    Container c = getContentPane();
    New_Customer()
    {
    super("Shree DattaDigambar Samarth");
    setBounds(140,250,777,555);
    c.setLayout(null);
    textFieldId = new JTextField();
    textFieldName = new JTextField();
    textFieldContactNo = new JTextField();
    l1 = new JLabel("New Customer Entry");
    l2 = new JLabel("Building No");
    l3 = new JLabel("Customer Name");
    l4 = new JLabel("Contact No");
    l5 = new JLabel("Paper");
    combo = new JComboBox(course);
    l1.setBounds(10,10,340,20);
    l2.setBounds(10,20,140,70);
    l3.setBounds(110,20,140,70);
    l4.setBounds(300,50,140,20);
    l5.setBounds(400,50,140,20);
    textFieldId.setBounds(10,70,70,20);
    textFieldName.setBounds(110,70,180,20);
    textFieldContactNo.setBounds(300,70,90,20);
    combo.setBounds(400,70,130,20);
    b1 = new JButton("Add paper");
    b2 = new JButton("Ok");
    b1.setBounds(10,100,100,20);
    b2.setBounds(10,160,50,20);
    c.add(combo);
    c.add(b1);
    c.add(b2);
    c.add(l1);
    c.add(l2);
    c.add(l3);
    c.add(l4);
    c.add(l5);
    c.add(textFieldId);
    c.add(textFieldName);
    c.add(textFieldContactNo);
    setVisible(true);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    b1.addActionListener(this);
    b2.addActionListener(this);
    }
    public void actionPerformed(ActionEvent e)
    {

    System.out.println("You clicked the button");
    }
    public static void main(String args[])
    {

    }
    }


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: java database project help?

    Welcome Devendra007

    Please use code tags when posting code. See the Announcements page if you need help.
    You listed several things to do, what are you having trouble with?

Similar Threads

  1. Replies: 1
    Last Post: December 21st, 2012, 09:35 AM
  2. urgent inserting database in a java project
    By kavneetrekhi in forum JDBC & Databases
    Replies: 1
    Last Post: October 19th, 2012, 08:11 PM
  3. Jar project to use Derby Database
    By Ma_2 in forum JDBC & Databases
    Replies: 1
    Last Post: July 17th, 2012, 11:03 AM
  4. Replies: 0
    Last Post: August 30th, 2010, 07:34 AM
  5. Replies: 2
    Last Post: August 1st, 2010, 06:29 AM

Tags for this Thread