Article View: borland.public.jbuilder.java.swing
Article #8261Re: JScrollbar
From: Johan Forsberg
Date: Mon, 09 Oct 2000 00:00
Date: Mon, 09 Oct 2000 00:00
19 lines
1245 bytes
1245 bytes
"Sven Goetgeluck" <sven.goetgeluck@pandora.be> skrev i meddelandet news:39d8e5fb_2@dnews... > Hi , > have a tree in a scrollbar > now all the names of the treenodes are bigger than the window the tre is in > so the scroolbar is present (hor one) > but i want the know to be at the left and not at the middle in the scrollbar > , how can i do this???? Your english is bit hard to parse ( :-) ), but I think you mean that you'd like to scroll the JScrollPane so that the leftmost part of the tree is visible? Try tree.scrollRectToVisible(new Rectangle(0, y, 1, 1)), where y is some 'good' value.
Technical Details
Message-ID:
<8rsmbn$78t16@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39d8e5fb_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b22302ed8b0b1baa X-Google-Attributes: gid111d45,public From: "Johan Forsberg" <jfo@SPAMfinansforbundet.SPAMse> Subject: Re: JScrollbar Date: 2000/10/09 Message-ID: <8rsmbn$78t16@bornews.borland.com> X-Deja-AN: 679335311 Content-Transfer-Encoding: 7bit References: <39d8e5fb_2@dnews> Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal X-Priority: 3 Content-Type: text/plain; charset="Windows-1252" Mime-Version: 1.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Newsgroups: borland.public.jbuilder.java.swing