🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2257

Get the screen position for mouse

#2257
From: Mike Cai
Date: Fri, 13 Apr 2001 02:32
9 lines
1819 bytes
Help!

I'm implementing a mouse drag function, but when I get the MouseEvent to
return the mouse position (e.getX(), e.getY()), it only returns the mouse
coordinate relative to the java window created by JFrame and not the actual
mouse coordinate relative to the operating system screen.  Anybody know how
to get the coordinate for the screen?  Thanks.

mike
Technical Details
Message-ID: <pztB6.3375$Pj2.305570@newsread1.prod.itd.earthlink.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5bf432c42ba9c0af,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: f74b3,5bf432c42ba9c0af,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 1089d0,5bf432c42ba9c0af,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-12 19:38:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
From: "Mike Cai" <mike@cycotron69.com>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,borland.public.jbuilder.java.swing
Subject: Get the screen position for mouse
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <pztB6.3375$Pj2.305570@newsread1.prod.itd.earthlink.net>
Date: Fri, 13 Apr 2001 02:32:53 GMT
NNTP-Posting-Host: 168.191.31.148
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 987129173 168.191.31.148 (Thu, 12 Apr 2001 19:32:53 PDT)
NNTP-Posting-Date: Thu, 12 Apr 2001 19:32:53 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
X-Received-Date: Thu, 12 Apr 2001 19:31:38 PDT (newsmaster1.prod.itd.earthlink.net)