Hi,
My code has a JTable and a custom TableModel. This table model is very
simple, there are three rows and the values for two of the rows are
looked up in a hash table (based upon the value of the first row - it's
a sparse array btw). This is fine - a bit slow but I expected that.
However, I put some Syste,.out statements in to see what was being
called due to a bug (my fault, off-by-one) and found that as the mouse
cursor moved over the table (read only table, no clicking or anything
else) the following methods were called for every mouse event sent:
getRowCount()
getColumnClass()
getValueAt()
getColumnClass()
getValueAt()
getColumnClass()
getValueAt()
Is there a way I can stop this? The JTable doesn't need to re-draw it -
the TableModelListener is there to tell the JTable when to do that!
--
Ross Burton Software Engineer
OneEighty Software Ltd Tel: +44 20 8263 2332
The Lansdowne Building Fax: +44 20 8263 6314
2 Lansdowne Road [EMAIL PROTECTED]
Croydon, Surrey CR9 2ER, UK http://www.180sw.com./
====================================================================
Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act OneEighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing