Hi
Thanks for the response.
But anyway I tried compiling again after removing
those 2 lines of code but still the problem persists.
And also one strange thing is that this refreshing
doesn't happen, when I select a cell from the same row
or same column.

i.e Initially if I select a cell from column 1 and row
1, it refreshes. Then when I select any cell either in
the row 1 or column 1 this refreshing doesn't happen.
But when I select other cells this happens.

The javascript function updates an array which is no
way related to the table.

Raji

--- Krishnakumar CS <[EMAIL PROTECTED]>
wrote:
> 
> 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


__________________________________________________
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