Results 1 to 2 of 2
  1. #1
    lemontree45 is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Jtable get edited contents


    I have a Jtable with two columns. I have an array of names for both the columns

    eg: First column A[]="John1","John2","John3" Second column B[]="GOOD","BAD"

    Could someone please clarify how to create a listener so that if I enter 'John1' in the first column, "BAD" should be there in column 2. and if I erase this first column and put John2 there, then "GOOD" should be present.

    Thanks and Regards

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Rep Power

    Default Re: Jtable get edited contents

    I guess you would use a TableModelListener.

Similar Threads

  1. Replies: 0
    Last Post: 01-29-2011, 06:24 AM
  2. Dynamically changing the contents of a jTable
    By kulangotski in forum AWT / Swing
    Replies: 3
    Last Post: 01-18-2011, 05:44 PM
  3. How to update JTable contents
    By chyrl in forum AWT / Swing
    Replies: 10
    Last Post: 04-17-2010, 05:26 AM
  4. Replies: 6
    Last Post: 12-12-2008, 03:35 PM

Tags for this Thread

Posting Permissions

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