If I remember correctly, it has to do with tooltips. You have to tell the 
table to not look for where you are to show them. (unless of course you 
want them....)

J

At 04:18 PM 5/4/2001 +0100, Ross Burton wrote:
>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


John Zukowski, Strategic Java Consulting
JZ Ventures, Inc. - http://www.jzventures.com
Java Collections - http://www.apress.com/catalog/book/1893115925/
The limits of my language are the limits of my world. - Wittgenstein

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to