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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:37:02+00:00 2026-05-21T14:37:02+00:00

I have a combo box. After selecting an item in combo box new JDialog

  • 0

I have a combo box. After selecting an item in combo box new JDialog opens.

  1. When i use JDK 1.6_06, I am able
    to click on buttons in JDialog
    properly.
  2. When i use JDK 1.6_24,
    then i need to click anywhere in
    JDialog first. Then only clicking on
    button works. Firstly i thought this
    is some issue with the focus. But
    component works fine with JDK
    1.6_06. But its a issue only with JDK 1.6_24.

I tried to google it. But didnt find any answer. Does anybody have any idea?

  • 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-21T14:37:03+00:00Added an answer on May 21, 2026 at 2:37 pm

    @All: Aplogize for late reply. I was trying out different scenarios. And i have found that issue is with the threading. It seems that combo box is not yet finished its work, and jdialog is opened. And after that combo box tries to finish its work, so the focus is lost to the parent window. I tried opening dialog in thread:

                 new Thread() {
                        public void run() {
                            // open dialog here
                        }
                    }.start();
    

    And it works fine. Now i am planning to open dialog using SwingWorker:

                     SwingWorker worker = new SwingWorker() {
                    @Override
                    protected Object doInBackground() throws Exception {
                        // TODO Auto-generated method stub
                        // open dialog here
                        return null;
                    }
                     };
    

    This is also working. Hope this is the right way. Please let me know, if I am doing a right thing.

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

Sidebar

Related Questions

I have a combo box on a WinForms app in which an item may
I have a combo box with the following DataTemplate: <DataTemplate x:Key=ComboBoxDataTemplate> <StackPanel> <TextBlock Text={Binding
I have a combo box in Silverlight. It has a collection of values built
I have a combo box in which I have to display the dates from
I have a combo box with a row source based on an SQL query
The problem: I have a combo box that needs to fit into a fixed
I'm using multiple threads in my application. Basically I have a combo box and
I have a read only combo-box with 5 values in, when the user selects
I have a page where my combo box has hundreds of elements which makes
I have a C# app with a combo box. I was add items to

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.