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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:05:53+00:00 2026-05-21T12:05:53+00:00

I’m seeing a really strange issue with JPopupMenu’s and JComboBox’s. When the application is

  • 0

I’m seeing a really strange issue with JPopupMenu’s and JComboBox’s. When the application is under heavy load, there are times when our popup menus appear with the right size and position, but just as blank, grey boxes.

The other issue we think is related is that sometimes, we see stanards JComboBox’s appear as though they have no items in them (i.e., they don’t pull down). We’ve seen this issue when the application is not under load. They’re not making database calls, or anything like that to populate the combo box items – they use hard-coded items.

I’ve put the popup menu creation in a SwingUtils.invokelater call, and that helped, but did not make the problem completely go away. I don’t know what I would do to change the combo box’s behavior. If we just right-click again, the context menu will reappear – fully populated. To get the combo boxes working right again, we just close the dialog that contains them, and then just open it back up.

We’re using Java 1.6.17 in a standard desktop app. Is there a bug I don’t know about, or something else that would solve it, or at least help us know what else might be going on?

  • 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-21T12:05:54+00:00Added an answer on May 21, 2026 at 12:05 pm

    All GUI components should be constructed “on the event dispatch thread,” and access to any data owned by another thread must be correctly synchronized. There’s a nice summary under Memory Consistency Properties.

    Addendum: @Boro raises two compelling points related to this problem.

    I have never experienced this kind of issue, and I would like to see one.

    The intermittent nature of the problem only suggests incorrect synchronization, but proof to the contrary is difficult. The affected system is likely too large to correct by inspection; sadly, an sscce would be contrived and obviously incorrect.

    There might be something else in the code as well, since invokeLater() didn’t help completely.

    One common scenario is a ListModel that is constructed lazily, perhaps on another thread. One approach is to log the EventQueue and look for anomalies, as suggested here.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text

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.