Your code seems ok. But I see a chance that you compiled the code with the
folllowing lines uncommented

//fireTableCellUpdated(row, col);        --> in setValueAt()
//mTable.repaint();                      --> in tableChanged()

If this is the case, the refresh will happen twice whenever data changes.


Now, does your javascript function try to update the table directly ??

regards,
Krishna

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 10:24 PM
To: Krishnakumar CS; [EMAIL PROTECTED]
Subject: RE: JTable refreshing - Urgent


Hi
I have herewith attached my java file.
The JSObject is used to call a javascript function in
my html.

Thanks
Raji


--- Krishnakumar CS <[EMAIL PROTECTED]>
wrote:
> Please send some code, so that it will be easy to
> analyse
> 
> checkout the fireXXXXX() function calls.
> 
> Also does the JSObject update the table directly ?
> 
> regards,
> Krishna
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 10:02 PM
> To: [EMAIL PROTECTED]
> Subject: JTable refreshing - Urgent
> 
> 
> Hi,
> Urgent. Can anybody suggest me a solution.....
> 
> I have created a JTable with a defaulttablemodel. I
> have also implemented the rowheader and columnheader
> for it. The table cells have the boolean value, so
> they are displayed as checkboxes. I can only edit
> the
> checkboxes i.e I'm not adding new row or column. I
> just have a problem with it. whenever I select a
> cell,
> the jtable is getting refreshed twice and it creates
> too much flickering. I haven't add any
> listselectionlistener for my jtable. Why is this
> happening. And whenever the checkbox is edited, I'm
> calling a javascript method using JSObject.
> 
> Help in this regard would be greatly appreciated.
> 
> Thanks,
> Raji
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to