On 04 May 2001 16:25:21 +0100, Neil Thorne wrote:
> Your JTable IS a TableModelListener for a start. The JTable is repainting
> itself as you drag your mouse across it, and it's using your TableModel to
> find out what it needs to draw.
But surely it doesn't need to redraw the table as the mouse moves unless
the model tells it that data has changed? I am only sending
ModelChangedEvents when they are required, and I was logging these too
so they're not being sent too frequently. Moving a mouse shouldn't cause
redraw events, the OS handles that so what is it redrawing? I need to
find a way to stop this! Any more ideas? Any authors of JTable hanging
around? :-)
> You need to make your getValueAt method super quick. My guess is that you
> have some seriously heavy duty work going on in there. Do you have a custom
> renderer too?
No custom renderers (yet!) Lookup of data values is done in a 10000+
element hash table...
Getting annoying with Swing here...
Ross
--
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