Results 1 to 2 of 2
  1. #1
    man4ish is offline Member
    Join Date
    Dec 2009
    Posts
    14
    Rep Power
    0

    Default How to repaint.refresh the table (table model) with combo box selection envent

    Hi,

    I am working on one appliation which has one combox with some fields and one table which has one column with same fields. When i select the item from combobox, that item should not be displayed in the table.Which meand the row which has that field should not be dispalyed. In order to implement this i am using repaint.

    My Logic ////

    combobox {"A", "B", "C"}

    table

    1 4 A
    2 5 B
    4 6 C

    when i select the A from combox then output should be

    2 5 B
    4 6 C

    for that when i select A i update the table data by removing the row and by using repaint i draw the table but this does not have any effect on it. May i know where i am wrong?
    Thanks in advance.

  2. #2
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    284
    Rep Power
    5

    Default

    Without seeing the table code, there is not much to say.
    Possibly the code to remove the row from the table
    is not notifying the listeners.
    This cannot be the problem if the table employs DefaultTableModel.removeRow().

    Perhaps you have some other TableModel?

Similar Threads

  1. Filter table model by data in specific column
    By ribbs2521 in forum New To Java
    Replies: 9
    Last Post: 10-29-2009, 04:41 AM
  2. table selection in SWT/Jface
    By amine2610 in forum SWT / JFace
    Replies: 1
    Last Post: 04-15-2009, 08:38 PM
  3. Data from a model class won't show up in the table
    By ayampanggang in forum AWT / Swing
    Replies: 3
    Last Post: 11-27-2008, 08:20 PM
  4. Table model
    By Manfizy in forum NetBeans
    Replies: 4
    Last Post: 11-08-2008, 02:19 AM
  5. Replies: 4
    Last Post: 01-05-2008, 07:39 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
  •