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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:43:48+00:00 2026-05-11T19:43:48+00:00

I have control of a small piece of an application built on Eclipse, and

  • 0

I have control of a small piece of an application built on Eclipse, and I’m having a problem creating a DefaultCellEditor. The code actually uses a subclass of DefaultCellEditor, but I can recreate the problem using DefaultCellEditor, so that’s what I’m going to ask about, hoping that it will solve the problem with the actual class. I’ve tried this with both JDK 1.5 and 1.6, and get the same behavior in both.

The problem happens when the constructor for DefaultCellEditor is called:

log.debug("Trying construction.");
currentCellEditor = new DefaultCellEditor(new JTextField());
log.debug("Constructed OK.");

When this code runs, maybe 20% of the time, the app hangs, and the CPU is pegged at 100% – looks like there’s an infinite loop in there somewhere, but I don’t know where. The first log line is printed, but the second is not.

I’ve tried making a copy of the DefaultCellEditor class and inserting System.out.println statements in there to see if I can figure out where the problem occurs; during the times that the code runs correctly, all of my debug statements are printed out, but when it doesn’t run correctly, none of the statements are printed out, almost like the hang occurs before the constructor is called. Any ideas what could be happening?

  • 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-05-11T19:43:48+00:00Added an answer on May 11, 2026 at 7:43 pm

    Both of the comments on the question were helpful. I was able to use the thread dump and figure out what was causing the loop (I ended up using StackTrace). My other problem is that while I was on the EDT earlier on, at the point this code actually runs, it’s not on the EDT anymore – so now I have to track that down, but some early testing indicates that putting this on the EDT may fix the problem. Thanks!

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

Sidebar

Related Questions

I have a Drupal 7 site and need to output a small calendar control
I'm using c#2.0 and WinForms. I have a datagridview control, unbound, loading small amounts
I have a small application which embeds webbrowser controls. In that application I have
Some code that I don't have control over is overriding the global JSON object
I have a small application developed in ASP.NET 2.0 WebForms. For learning purpose, I
I have built a small app that has a JSlider which controls the speed
I have a small C program to calculate hashes (for hash tables). The code
I have the very common problem of creating an index for an in-disk array
We have developed a small control that is always meant to be at the
I'm building a small application that pulls statistics from an API I have no

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.