Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8293163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:44:05+00:00 2026-06-08T13:44:05+00:00

I am looking for the correct way to show a custom Component as a

  • 0

I am looking for the “correct” way to show a custom Component as a popup when I mouseover a Vertex in JUNG2.

This question is essentially the same as

Jung2: How to implement displaying details of a node on mouse over of a Node?

but that person seems to be content with a simple tooltip popup, whereas I am not.

NOTE: I am currently using an implementation of PluggableGraphMouse with a MouseMotionListener plugin which does something like this (I have Note objects as vertices):

    @Override
    public void mouseMoved(MouseEvent e) {
        Note note = graphVisualiser.getPickSupport().getVertex(getGraphLayout(), e.getX(), e.getY());
        if (note != null && note != lastMouseOverNote) {
            lastMouseOverNote = note;
            // my handling code here
        }
    }

It works when I mouse over a vertex, and I can also expand on the above to turn off the popup when the mouse goes away, but I am concerned that this approach is incredibly inefficient: it is essentially checking to see if I’m mousing over a vertex every time the mouse moves.

I’d rather have a Listener approach – is there a way to register mouseEntered/mouseExited event to the vertices? (from what I can tell, this is all happening through raw painting and there is no Component that I could register with).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:44:06+00:00Added an answer on June 8, 2026 at 1:44 pm

    It cannot be done, because the vertices are being drawn as primitives and don’t have listeners for mouse movements – only selection/deselection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking around the docs I cannot see a correct way to go about this.
Looking for the correct way and control to import and export of out of
I'm looking for the correct way to export my pictures sequence into a quicktime
I am looking to the fastest and the correct way to check if a
I am looking at singletons and I was curious about the correct way to
I'm looking for the correct way to structure the query for a view in
I am looking for the CORRECT way to do the following: $(#some-image).fadeOut(); $(#some-image).attr(src, new-src.png);
I've been trawling various sites looking for the correct way to manage switching. I
Okay, this is a simple question, but I'd like some oppinions on the correct
I'm looking for correct way to allow elevating privileges for selected operations. Something similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.