🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Scrollbar Moving Automatically on Tree Expansion - in Java Swing's BasicTreeUI

#80
From: Andrey Kuznetsov
Date: Thu, 29 Dec 2005 21:39
12 lines
1628 bytes
> if(tree.getScrollsOnExpand())
>     ensureRowsAreVisible(row, row + treeState.
> getVisibleChildCount(path));

as you can see from this code snippet that you can control it with
JTree#setScrollsOnExpand(false)

-- 
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
Technical Details
Message-ID: <dp1l1q$tt2$1@online.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail
References: <1135880592.127419.75950@g49g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,82e8bb0d2517a790
X-Google-Thread: 10a146,82e8bb0d2517a790
X-Google-Thread: 113ae9,82e8bb0d2517a790
X-Google-Attributes: gid111d45,gid10a146,gid113ae9,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail
From: "Andrey Kuznetsov" <spam0@imagero.com.invalid>
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.programmer,comp.lang.java.help
Subject: Re: Scrollbar Moving Automatically on Tree Expansion - in Java Swing's BasicTreeUI
Date: Thu, 29 Dec 2005 22:39:08 +0100
Organization: 1&1 Internet AG
Lines: 14
Message-ID: <dp1l1q$tt2$1@online.de>
References: <1135880592.127419.75950@g49g2000cwa.googlegroups.com>
NNTP-Posting-Host: p54bd11c5.dip0.t-ipconnect.de
X-Trace: online.de 1135892346 30626 84.189.17.197 (29 Dec 2005 21:39:06 GMT)
X-Complaints-To: abuse@einsundeins.com
NNTP-Posting-Date: Thu, 29 Dec 2005 21:39:06 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180