🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12275

JScrollPane scroll bar range problem...

#12275
From: magister
Date: Wed, 27 Jan 1999 00:00
23 lines
1357 bytes
Hi Folks,
I have a problem with the vertical scroll bar of a JScrollPane not having its
range set correctly.  Here's the deal:

I have a JFrame derived class with a panel with a dummy JScrollPane and
a dummy table.  Another panel has a button.  When the button is clicked,
the application hits SQLServer, gets some data, and displays it in the table.
I have a table model that responds with valid data if it's there and with
"foo" if it's not. On the query, I remove the current table from the JPanel
container and "new" another one after I have data back.

All of that works.  The problem is that if I retrieve 150
records from the db, my vertical scroll bar let's me see about 10 of them.
I have a similar thing (without all the deletion and newing) in another
JFrame and it works fine.

I also have to resize the JFrame to get the table to paint properly.
repaint() didn't.

Ideas?

Thanks!
Carey
Technical Details
Message-ID: <78naca$h5v$1@camel21.mindspring.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2035cf7fdf9f9f3a,start
X-Google-Attributes: gid111d45,public
From: magister@mindspring.NOcomSPAM
Subject: JScrollPane scroll bar range problem...
Date: 1999/01/27
Message-ID: <78naca$h5v$1@camel21.mindspring.com>
X-Deja-AN: 437547026
Organization: MindSpring Enterprises
X-Server-Date: 27 Jan 1999 15:12:10 GMT
Newsgroups: borland.public.jbuilder.java.swing