🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GridControl & JPopup

#13117
From: John Sinues
Date: Thu, 24 Sep 1998 00:00
11 lines
964 bytes
Thanks Paul,
Your idea of using getScrollPosition() worked!  Here's
the code snippit FYI,

  void GridControl_mouseClicked(MouseEvent e) {
    this.add(PopupMenu);
    if (e.getModifiers() == Event.META_MASK) {  // right click
        Point p = new Point( GridControl.getScrollPosition() );
        PopupMenu.show(GridControl, e.getX()-p.x, e.getY()-p.y);
    }
  }
Technical Details
Message-ID: <360A8D51.1AB7B550@prc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36094EFE.BFFCA2B@prc.com> <36097129.AA301577@bilbo.bio.purdue.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d3bb3d9a4906fe61
X-Google-Attributes: gid111d45,public
From: John Sinues <sinues_john@prc.com>
Subject: Re: GridControl & JPopup
Date: 1998/09/24
Message-ID: <360A8D51.1AB7B550@prc.com>
X-Deja-AN: 394433920
Content-Transfer-Encoding: 7bit
References: <36094EFE.BFFCA2B@prc.com> <36097129.AA301577@bilbo.bio.purdue.edu>
To: pf@bilbo.bio.purdue.edu
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing