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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:23:30+00:00 2026-05-21T03:23:30+00:00

It is said that Swing toolkit is not multithread-Safe? What is meant by this

  • 0

It is said that “Swing toolkit is not multithread-Safe?

What is meant by this statement?

  • 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-21T03:23:31+00:00Added an answer on May 21, 2026 at 3:23 am

    Check this link: http://www.jguru.com/faq/view.jsp?EID=131370

    So to simplify the implementation of
    Swing library they chose it to be not
    thread safe. The argument being that
    most of the GUI related work happens
    in the callbacks from the GUI which
    happen on the single GUI thread
    anyways. Granted – for long running
    tasks the user will have to do more
    work if he/she wants to do
    multithreaded activity…

    Specially the link given for the jfc.

    And the this link: http://www.it.uu.se/edu/course/homepage/devgui/vt03/out/ThreadsAndSwing.pdf

    After Swing components have been
    displayed on the screen, they should
    only be operated on by the
    event-handling thread. The
    event-handling thread (or just event
    thread) is started automatically by
    the Java VM when an application has a
    graphical interface. The event thread
    calls methods like paint() on
    Component, actionPerformed() on
    ActionListener, and all of the other
    event-handling methods


    ADD

    Check the second link I have given, specially the section: The Need for Worker Threads in a GUI Setting (also there is an example for explaining it). Quoting here for reference:

    The event thread plays a critical role
    in an application with a graphical
    interface. Code that will be executed
    by the event-handling thread should be
    relatively brief and nonblocking. If
    the event-handling thread is blocked
    in a section of code for a while, no
    other events can be processed!

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

Sidebar

Related Questions

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd
Before someone said that I did not read I may say that I read
in this answer he said that i can use RIA services while creating my
Its said that property should not be Set only (Code analysis rule CA1044 )and
It is said that in the Spring javadoc article about DriverManagerDataSource class, that this
First of all I'm really not that great at sql, with that said, onwards
In Swing JPanel said to be opaque, what does that mean? Also how JPanel
Someone said that I might not be getting how to proper code in Haskell.
Somebody said that when your PHP code and application use global variables then it
I've heard it said that the Entity Framework is overkill or that it's difficult

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.