Results 1 to 2 of 2
- 01-07-2010, 06:50 AM #1
Member
- Join Date
- Dec 2009
- Posts
- 14
- Rep Power
- 0
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.
- 01-08-2010, 06:19 AM #2
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 285
- Rep Power
- 12
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
-
Filter table model by data in specific column
By ribbs2521 in forum New To JavaReplies: 9Last Post: 10-29-2009, 04:41 AM -
table selection in SWT/Jface
By amine2610 in forum SWT / JFaceReplies: 1Last Post: 04-15-2009, 08:38 PM -
Data from a model class won't show up in the table
By ayampanggang in forum AWT / SwingReplies: 3Last Post: 11-27-2008, 08:20 PM -
Table model
By Manfizy in forum NetBeansReplies: 4Last Post: 11-08-2008, 02:19 AM -
how to refresh the table when a new account is added and display instantly
By sravanthi narra in forum SWT / JFaceReplies: 4Last Post: 01-05-2008, 07:39 PM
Bookmarks