Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default ResultSet and JTable

    1. ResultSet rows and columns are counted from 1 and JTable rows and columns are counted from 0
    2. It is necessary to add 1 to the row or column number to manipulate the appropriate ResultSet
    3. for example
    moving from ResultSet column 1 = JTable column 2

    If there can never be a ResultSet with column = 0 or colum = -1, then what would be the first column number in a JTable. Help me understand. Thanks.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default Re: ResultSet and JTable

    Since JTable starts from zero, and ResultSet starts from 1 (which is your point 1), then your point 3 is clearly wrong, as:
    ResultSet 1 = JTable 0
    Please do not ask for code as refusal often offends.

Similar Threads

  1. Problem with Jtable with ResultSet
    By dnix in forum AWT / Swing
    Replies: 2
    Last Post: 08-18-2012, 11:36 PM
  2. Multiple Resultset in Jtable
    By hash004 in forum New To Java
    Replies: 1
    Last Post: 07-17-2011, 09:14 PM
  3. Replies: 2
    Last Post: 05-07-2011, 06:32 PM
  4. Returning a ResultSet to custom JTable Model
    By Kenjitsuka in forum New To Java
    Replies: 9
    Last Post: 10-16-2010, 09:17 PM
  5. ResultSet to JTable
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-11-2008, 09:01 AM

Posting Permissions

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