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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:46:17+00:00 2026-05-20T21:46:17+00:00

I have implemented a standalone java application which uses the swing framework for GUI.As

  • 0

I have implemented a standalone java application which uses the swing framework for GUI.As part of the GUI there is a JTextArea which appears after a button is clicked on and some text is appended at the jtextarea after a job is being processed in the background.I am using the SwingWorker library, as i dont’t want my jtextarea to freeze the app and it works perfectly.So the job code lies inside the overriden doInBackground.

The problem that i am facing is when i launch this GUI application as part of an Eclipse plugin.I have build a jar with my swing app and i’ve added an extension to the Eclipse workbench.In the beginning the app launched properly but when the application flow goes to the point when the swingworker is to be invoked, this specific jtextarea is freezing and nothing happened.It seems that the code inside the doInBackground() function of my Swingworker is not invoked.
I am launching the app inside the eclipse pugin code as below:

SwingUtilities.invokeLater(new Runnable() {public void run() {
              new MainFrame.setVisible(true);
          }
      });

where MAinFrame is a JFrame class of the java program.
Do you know why is this 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-20T21:46:18+00:00Added an answer on May 20, 2026 at 9:46 pm

    It is not easy to mix SWT and AWT/Swing UI in the same process. They require different event loops. Your code is freezing because Awt/Swing event loop is not running in the Eclipse process. You can either re-write your UI in SWT or research SWT-AWT bridge. The bridge “works”, but has numerous glitches. It is really only appropriate for situation where there is an enormous amount of AWT/Swing and a temporary solution is necessary while the UI is ported to SWT.

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

Sidebar

Related Questions

I have implemented an XMLHttpRequest() call to a standalone html page which simply has
I have an Eclipse RCP Standalone Application using Eclipse 3.6. I have implemented a
I have a standalone Java application that gets data from a database and displays
Are there any exemplary examples of the GoF Observer implemented in Python? I have
I have a stand-alone java application that makes some database read/write business on a
Technology(Java EE 6 with Glassfish 3.1, Netbeans 7.0) I have an application client that
I have implemented Facebook in my application, and noticed that I have some problems
I have a single java bean, which is already annotated for JPA, that I
We have an application which acts as a touchscreen overlay. It provides custom touchscreen
I have to develop an application which fulfills following demands: It has to be

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.