🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3380

ScrollBars in ScrollPane go haywire!

#3380
From: John Christian Lonningdal
Date: Sat, 17 Jan 1998 00:00
20 lines
1213 bytes
Is this an awt bug? :

I make a class inheriting a Frame. I use a border-layout so that
the component I add is resized with the window frame.
I then add a ScrollPane component. I then add a Canvas object
to this scrollpane (my class which inherits Canvas). I then resize
this Canvas expecting the the scrollbars for the ScrollPane to adapt,
but nothing works right. First when the Frame is shown the
scrollbars are sometimes there, and sometimes not. When I resize
it, sometimes they disappear, sometimes I get half a scrollbar in
the middle and sometimes i get them but indicating the wrong area.
Totally useless in other words.... :(

Also, calling repaint from within the canvas-inherited class just erases
the
canvas and never calls the paint member function... :( Another bug?

Thanks for any help,
John
Technical Details
Message-ID: <01bd2396$de3936c0$0701a8c0@john>
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: 1089d0,83e451ac048aee58,start
X-Google-Attributes: gid1089d0,public
From: "John Christian Lonningdal" <johncl@online.no>
Subject: ScrollBars in ScrollPane go haywire!
Date: 1998/01/17
Message-ID: <01bd2396$de3936c0$0701a8c0@john>
X-Deja-AN: 316925397
Organization: None
Newsgroups: borland.public.jbuilder.java.api