Results 1 to 3 of 3
  1. #1
    hassaanid2012 is offline Member
    Join Date
    Apr 2012
    Location
    Pakistan
    Posts
    20
    Rep Power
    0

    Default JTable to JTextField?

    Hello Guys!!!

    I have JFrame with 2 JTable and 4 JTextField inside it. I want to display the selected row data on 4 individual JTextField. JTable has 4 columns and i created 4 corresponding JTextField. When user selects row it should display the data on JTextField. How can i accomplish this task? Any help is greatly appreciated. Thanks!!!

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: JTable to JTextField?

    Hello,

    Can you post the code so that we can see what have you done so far? Please post only the code that related to your problem. Do you know how to get the selected rows on a JTable? Or you just need to know how to extract data from the selected row?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: JTable to JTextField?

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2011, 05:13 AM
  2. Jtable And Jtextfield / Sql Problems
    By Dcalladi in forum AWT / Swing
    Replies: 0
    Last Post: 10-20-2011, 04:25 PM
  3. Jtable and JTextField
    By ehsan in forum AWT / Swing
    Replies: 3
    Last Post: 08-14-2011, 05:37 PM
  4. Replies: 6
    Last Post: 11-19-2010, 07:44 PM
  5. Replies: 1
    Last Post: 01-30-2009, 06:44 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
  •