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

  • SEARCH
  • Home
  • 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 7850965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:02:58+00:00 2026-06-02T19:02:58+00:00

I am rendering a graph from a GraphML source file using either JUNG or

  • 0

I am rendering a graph from a GraphML source file using either JUNG or Prefuse. Now another program updates this source file periodically with new nodes and edges. I want to update the graph to reflect these changes as well. I cannot find anything in both APIs themselves that let me do this (no appropriate refresh(TIMER) or redraw(TIMER) kind of methods). The one way of doing this might be to terminate the JFrame after some time period and redo the whole data loading, visualization and rendering process again, but that doesn’t seem proper to me.

So the question is, what’s the best way to do this as simply and as quickly as possible? Thanks 🙂

  • 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-02T19:02:59+00:00Added an answer on June 2, 2026 at 7:02 pm

    Check the source file “periodically”. If you hang on to a handle f for the file, you can query f.lastModified() and if the other program has done its dirty work since last you checked, update! Similar solutions apply if the other program were writing only an update file (which would be sensible if you have the power to make that change – less file to read, know exactly what to change in your model, etc).

    “Periodically” is a bit of sticky wicket – your case is probably simple enough that “every X (milli)seconds, check” will do. Periodic tasks in Java can be implemented in a variety of ways – see, e.g. this other question.

    JUNG has re-render/re-paint on update demos, e.g. this one. The tutorial (pdf) linked in their docs covers dynamic updates in section 5 (the section is about interactivity, but the necessaries to do updating when presented with new info are all covered).

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

Sidebar

Related Questions

First a little intro: Last year i wrote this http://dragan.yourtree.org/code/canvas-3d-graph/ Now, i want to
Using ruby-graphviz, I've created a graph that looks like this (border added to emphasize
Getting a rendering error for this form: 'NoneType' object has no attribute 'widget' http://dpaste.com/88585/
I'm rendering a common Log-In form using Html.RenderAction, on every page of my site.
I am rendering out a ViewUserControl (.ascx file) in a view: <% Html.RenderPartial(Comments, Model.Comments);
Am working on a program that will allow a graph of nodes to be
Im working on rendering a graph in app. Working with the data (drawing the
Rendering a partial using AJAX $('#next_videos').replaceWith('<%= render(:partial => 'videos')%>'); is my js the partial
I rendering a view partially like this. <%= render(:partial => index ,:controller=>controller_name) %> so
I need to render a graph in a datagrid. I was thinking of rendering

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.