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: how to embed combobox,checbox in JTable read write to database

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to embed combobox,checbox in JTable read write to database

    Hello everybody, I need to put a combobox in a JTable, and use it to read from DBase and to Insert into DBase.
    Please Help.


  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: how to embed combobox,checbox in JTable read write to database

    Create a JTable, User a custom cell renderer (google it).

    Then create a database class that connects to the database (google it again).

    Its all on google just look around and try things, We cannot give out the answer as its "spoon feeding" but only lead you in the correct direction..

    Google these terms:
    JTable custom cell renderer
    Java database connectivity
    JCombo box tutorial

    good luck.

Similar Threads

  1. Read and write file in Java
    By waiheng1986 in forum File Input/Output Tutorials
    Replies: 1
    Last Post: March 18th, 2012, 12:54 PM
  2. problem related combobox nd database
    By harsimran in forum Java Theory & Questions
    Replies: 1
    Last Post: September 9th, 2011, 03:27 PM
  3. Images (read/write, drawing)
    By helloworld922 in forum File Input/Output Tutorials
    Replies: 1
    Last Post: September 5th, 2011, 10:11 AM
  4. Read (using Odbc)and write using (POI api)
    By amruta in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 9th, 2010, 10:12 AM
  5. [SOLVED] Get Data From Database MySQL using ComboBox
    By Simple in forum Java Theory & Questions
    Replies: 2
    Last Post: June 4th, 2010, 03:45 AM