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 7835403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:36:59+00:00 2026-06-02T13:36:59+00:00

I have a bound JTextField and a seperate graph made from a JComponent. When

  • 0

I have a bound JTextField and a seperate graph made from a JComponent. When I drag on my graph, a marker should update and the bound JTextField should show its coordinates as it is being dragged. When I am binding, the graph will not repaint until I finish dragging. When I turn off the binding, my graph repaints as a I drag. I do not understand why JGoodies is blocking out my repaint calls while I drag. Does anybody know why this could happen?

My code looks like:

public void dragMarker()
{
    ...some code...
    firePropertyChange("propertyName", oldValue, newValue);
    myJComponent.refresh();
}

Something is going on in JGoodies that I cannot figure out. It should repaint after the binding call completes.

Also, I was just reading that Swing can collapse multiple calls to repaint into one call. Could that be happening to me? My repaint calls are just being collapsed into one call at the end?

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

    My answer, which I don’t find perfect satisfaction with, is that I launch a swingworker thread with a scheduled executor at a rate of .3 seconds which runs the firePropertyChangeListeners and updates JGoodies bound code. This means the updates are choppy, but at least the drawing code is almost perfectly smooth. It boggles my mind that this problem occurs. This was the best I could do…

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

Sidebar

Related Questions

I have a textbox bound to a property. The property continously gets updated from
I have bound a TreeView to an XMLDataProvider. The TreeView displays the data as
I have bound a flagged enum to a bunch of checkboxes by using a
I have a div that I have bound the jQuery hover event to activate
I have a bound form in microsoft access that allows a user to add
I have a bound dropdown list populated with a table of names through a
I have used ListView and bounded my custom ArrayAdapter to it. Have setOnItemClickListener(...) bound
Usually, when people click on a link, I have onclick bound to it. And
I have a DataGridView bound to a LINQ to SQL query expression. I want
I have a ListBox bound to a list of Items (for arguement, lets say

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.