Article View: borland.public.jbuilder.java.swing
Article #13347Re: getLocation of JPanel
From: John P. McGrath
Date: Mon, 17 Aug 1998 00:00
Date: Mon, 17 Aug 1998 00:00
18 lines
1033 bytes
1033 bytes
Duc Dat Tran <duc-dat.tran@nooft.abb.no> wrote: > Can someone tell me why I always get x=0 and y=0 when : > > jpanel.getLocation(); is executed, > > even if the jpanel is located in the middel of the screen. If the location is being set by a layout manager (even an XYLayout), and you are printing the location before the JPanel is made visible, it will show a location of [0,0]. -- John P. McGrath <mcgrath@enter.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<01bdc9a2$0529c3b0$3347aacc@ferd>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35D1A018.AFCA7BF5@nooft.abb.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e3cf5a768167666a X-Google-Attributes: gid111d45,public From: "John P. McGrath" <mcgrath@enter.net> Subject: Re: getLocation of JPanel Date: 1998/08/17 Message-ID: <01bdc9a2$0529c3b0$3347aacc@ferd> X-Deja-AN: 381865026 Content-Transfer-Encoding: quoted-printable References: <35D1A018.AFCA7BF5@nooft.abb.no> Content-Type: text/plain; charset=ISO-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing