Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Rep Power

    Default How to write database queries in Jtable rows and columns?


    Can anyone tell me, how to connect Jtable with database.

    I have created Jtable with 2 columns and 3 rows. I have to get values from rows and store it in MySql database. I have created rows and columns using vectors. I use JDBC for connection.

    Vignesh Karthick

  2. #2
    Dinesh_rockz is offline Member
    Join Date
    Jan 2011
    Rep Power


    JTable has Constructor for adding vectors data

    the syntax is
    JTable tab=new JTable(Vector rowData, Vector columnNames);

    please post your thread with code that help find right Solution.

Similar Threads

  1. How to create 3 columns and 2 rows tablelayout in Java
    By newbiejava in forum New To Java
    Replies: 5
    Last Post: 07-17-2010, 03:24 AM
  2. Write empty Jtable columns to disk
    By ocean in forum New To Java
    Replies: 9
    Last Post: 12-03-2009, 03:02 PM
  3. Need a loop for rows and columns
    By Ceasar in forum New To Java
    Replies: 4
    Last Post: 10-09-2009, 03:03 PM
  4. Counting Rows and Columns from Excel Sheet
    By Anish in forum Advanced Java
    Replies: 3
    Last Post: 12-24-2008, 06:56 AM
  5. Two diM aRRay and add rows and columns....
    By filly444 in forum New To Java
    Replies: 2
    Last Post: 08-30-2008, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts