🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Sam Seaborn Tue, 16 Mar 2004 15:02
JTable in a JScrollPane question
#1139
Author: Sam Seaborn
Date: Tue, 16 Mar 2004 15:02
14 lines
1370 bytes
I have a JTable in a JScrollPane.  The JTable may contain up to 100,000
items.

When I grab the scroll cursor and move it down, the table model's
getValueAt(rowIndex, columnIndex) method for every item in the entire range.

What I want is to only refresh the contents of the JTable when the user has
dropped the scroll cursor in it's new location, not during the entire drag
range.

Is there a simple way to tell JScrollPane to only refresh the view only
after the drag of the cursor is done?

Sam
Re: JTable in a JScrollPane question
#1149
Author: John McGrath [TeamB]
Date: Fri, 19 Mar 2004 03:57
18 lines
1376 bytes
On 3/16/2004 at 10:02:49 AM, Sam Seaborn wrote:

> Is there a simple way to tell JScrollPane to only refresh the view
> only after the drag of the cursor is done?

There is no simple way that I am aware of.

Of course, it is possible to do, but you would probably have to
customize the UI delegate classes, which gets complicated.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads