🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15031

ScrollPane and setScrollPosition : more details

#15031
From: Thibaut Daurat
Date: Tue, 13 Jul 1999 00:00
30 lines
1240 bytes
Here is a part of my paint method code :

// I get the position my scrollpane was at

PtPosition = Defileur.getScrollPosition();
...

Defileur.add(Panneau);

System.out.println("Position : "+PtPosition.toString() +
    "\n Port size : "+Defileur.getViewportSize() +
    "\n Panel size : "+Panneau.getSize() );

// I set back the scrollpane in its initial position
Defileur.setScrollPosition(PtPosition);

add(Defileur);

PtPosition = Defileur.getScrollPosition();
System.out.println("Position finale : "+PtPosition.toString());

// end of code

>> The final getScrollPosition indicates the position I'd like the scrollbar
to have, but in fact the applet is not scrolled to that position when it's
repainted...

Any idea?
--
Thibaut
Technical Details
Message-ID: <7mevic$sqn10@forums.borland.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: f74b3,10095913e9aba15d,start
X-Google-Attributes: gidf74b3,public
From: "Thibaut Daurat" <tdaurat@microline.fr>
Subject: ScrollPane and setScrollPosition : more details
Date: 1999/07/13
Message-ID: <7mevic$sqn10@forums.borland.com>
X-Deja-AN: 500445839
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language