Article View: borland.public.jbuilder.java.api
Article #1013Open Frame at mouse position
From: Alex Terehoff
Date: Sun, 28 Apr 2002 23:26
Date: Sun, 28 Apr 2002 23:26
9 lines
1272 bytes
1272 bytes
I am trying to open a frame at the position of the button clicked. I am taking the mouse position using e.getX() and e.getY() on mousePressed where e is a MouseEvent and trying to assing the value of x and y when calling frame's setLocation() method but still the frame is opened at the desired location/position. I cannot figure it out what I am doing wrong. Alex
Technical Details
Message-ID:
<3ccc8527_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,224108dd667f573f,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-28 16:36:55 PST From: "Alex Terehoff" <aterehoff@hotmail.com> Newsgroups: borland.public.jbuilder.java.api Subject: Open Frame at mouse position Date: Sun, 28 Apr 2002 19:26:29 -0400 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 158.72.102.247 Message-ID: <3ccc8527_1@dnews> X-Trace: dnews 1020036391 158.72.102.247 (28 Apr 2002 16:26:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews