Results 1 to 2 of 2
  1. #1
    pratim is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

    Default Displaying database values as a row in a JTable but not as a column

    Sir, i have a problem i need to display my database values as a row but not as a column in a JTable. Is it possible? Please give me some suggestion regarding this.

    I have a database table with fields like emp_id, emp_name.

    emp_id emp_name
    1 ravi
    2 sita
    3 gita
    ... ..
    .. ..
    .. ..
    But i need to display in JTable as
    emp_id 1 2 3.....
    emp_name ravi sita gita.......

    Thank you in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

Similar Threads

  1. adding sum column on jtable that is binded to a database table
    By madcloud in forum Enterprise JavaBeans (EJB)
    Replies: 4
    Last Post: 12-06-2010, 08:26 AM
  2. JTable Column Flow
    By anilkumar_vist in forum Advanced Java
    Replies: 3
    Last Post: 10-26-2010, 06:57 AM
  3. JCheckbox in a Jtable Column
    By kedia_rohit in forum AWT / Swing
    Replies: 1
    Last Post: 04-25-2010, 12:45 PM
  4. inserting values from jtable into database
    By sandeepsai17 in forum New To Java
    Replies: 1
    Last Post: 06-29-2009, 07:31 PM
  5. editing jTable then writing new values to database!
    By sweet angle in forum AWT / Swing
    Replies: 6
    Last Post: 01-27-2009, 05:07 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
  •