What does, "swing is not thread safe." mean?

can anyone explain what that means in detail?

[Google can|http://letmegooglethatforyou.com/?q=swing+is+not+thread+safe+tutorial]
For better response, you may wish to ask a specific question that's answerable without having to write a book chapter.

Similar Messages

  • HT201210 What does the do not disturb selecton mean? under settings

    What does the 'do not disturb' selection mean under settings?

    It allows you to not be disturbed by calls, messages, E-Mail notifications, etc. You can also set it for certain times, like from 10:30pm to 6am

  • What does "You do not have sufficient access privileges" mean?

    Hello Gurus!
    I am wondering what does "You do not have sufficient access privileges" mean? I have a G$ with 2 internal hard drives. One has OSX 10.3.9 loaded on it and the other has OSX 10.4.7 loaded on it. When I boot up in 10.4.7 and try to access (open or copy) anything in the the desktop, documents, library, movies, music or pictures folders in my user folder on the 10.3.9 disk, it tells me that "I do not have sufficient access privileges"! This is a single user machine and it automatically logs in as me... the administrator. I tried to look at Apple's technical documents regarding permissions and privileges, but it is very confusing with all of it's terminal commands and lingo. Does anyone know an easy (and hopefully GUI) way around this problem?
    Thanks Much,
    Mark

    If you have a different system on each HD then you do not have a single user machine. The user on one system/boot volume is not the same user as the one on the other, even if they ahve the same name and password. If you boot from the 10.3 volume, you can select your user folder, go to File-Get Info, and change the access for others to read and write and click on the apply to enclosed items button. You should then be able to boot from the other system and move stuff around as you see fit. Of course, this is not a terribly secure state to leave your system in, as anyone who can gain access to your Mac can get at everything on your 10.3 home folder.
    If you try this route, I'd suggest doing it only long enough to move everything to one home folder and then revert the access privs to the way they were.

  • What does "you do not have enough genius suggestions in your library to use this feature mean?

    what does "you do not have enough genius suggestions in your library to use this feature mean?

    At face value it would suggest the content of your library is too obscure, however it might mean your library is too small for the feature to be active, or that it hasn't catalogued your content yet.
    tt2

  • HT201210 what does 'firmware is not compatible' mean? What do I do to solve it?

    what does 'firmware is not compatible' mean? What do I do to solve it?

    Exactly what it says.
    How are you trying to update the device, step by step?

  • HT201210 what does firmware file not compatible mean when updating iphone software?

    what does firmware file not compatible mean when updating software on iphone?

    Make sure your iTunes is up to date
    Help > Check for updates

  • Native library NOT thread safe - how to use it via JNI?

    Hello,
    has anybody ever tried to use a native library from JNI, when the library is not thread safe?
    The library (Windows DLL) was up to now used in an MFC App and thus was only used by one user - that meant one thread - at a time.
    Now we would like to use the library like a "server": many Java clients connect the same time to the library via JNI. That would mean each client makes its calls to the library in its own thread. Because the library is not thread safe, this would cause problems.
    Now we discussed to load the library several times - separately for each client (for each thread).
    Is this possible at all? How can we do that?
    And do you think we can solve the problem in this way?
    Are there other ways to use the library, though it is not thread safe?
    Any ideas welcome.
    Thanks for any contributions to the discussion, Ina

    (1)
    has anybody ever tried to use a native library from
    JNI, when the library (Windows DLL) is not thread safe?
    Now we want many Java clients.
    That would mean each client makes its calls
    to the library in its own thread. Because the library
    is not thread safe, this would cause problems.Right. And therefore you have to encapsulate the DLL behind a properly synchronized interface class.
    Now the details of how you have to do that depends: (a) does the DLL contain state information other than TLS? (b) do you know which methods are not thread-safe?
    Depending on (a), (b) two extremes are both possible:
    One extreme would be to get an instance of the interface to the DLL from a factory method you'll have to write, where the factory method will block until it can give you "the DLL". Every client thread would obtain "the DLL", then use it, then release it. That would make the whole thing a "client-driven" "dedicated" server. If a client forgets to release the DLL, everybody else is going to be locked out. :-(
    The other extreme would be just to mirror the DLL methods, and mark the relevant ones as synchronized. That should be doable if (a) is false, and (b) is true.
    (2)
    Now we discussed to load the library several times -
    separately for each client (for each thread).
    Is this possible at all? How can we do that?
    And do you think we can solve the problem in this
    way?The DLL is going to be mapped into the process address space on first usage. More Java threads just means adding more references to the same DLL instance.
    That would not result in thread-safe behavior.

  • HTTP request/response object not thread safe.

    According to the serlvet spec. Http Request/Response
    are not thread safe. Quoting from the Spec:
    " Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic."
    This has prompt me to ask the following question.
    For Example I have a servlet which does the following
    request.setAttribute("myVar","Hello");
    The request and response is dispatched(using RequestDispatch.include(request,response)) to another
    servlet which retrieve this attribute i.e request.getAttribute("myVar");
    Is this safe?
    The Spec only said "The Container Provider must ensure that the dispatch of the request to a target
    servlet occurs in the same thread of the same VM as the original request." I take this meaning that the targeting servlet does not have to run in the same thread(only dispatch), otherwise it would be safe.

    To put it another way, you can only have onle thing working on a request at a time. For instance, the ServletContext is available to all servlets running on a server. If you tried to save a particular request to the ServletContext, it would potentially be available to many concurrently running servlets. They could all change whatever in it at the same time. Each servlet is in its own running thread. Hope that helps some.

  • JTextArea: Not thread safe

    I am working on a lobby system with a chat are using Networking, and recently I noticed that occasionally my JTextArea does not append the data I give it, even if I have a System.out.println() directly before which shows me what it is being passed, and it is being passed correct Strings, it is just not appending them.
        Thread updateText = new Thread() {
            public void run()
                for(;;)
                    try {
                        for (int x = 0; x < texts.size(); x++) {
                            System.out.println("ADDED: "+texts.get(x));
                            textArea.append(texts.get(x));
                        texts.clear();
                        scrollToEnd(textArea);
                        Thread.sleep(100);
                    } catch (InterruptedException ex) {
                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        };I have an ArrayList texts, which keeps track of what is being typed into the Chat Area. This code displays correctly What I want it to, i.e. "ADDED: Hello guys, etc.", however the JTextArea does not update. Is there something to make the JTextArea thread-safe because I have heard on several sites that JTextAreas are not thread-safe.
    Any help would be greatly appreciated.

    I changed my code to this: and now it does not work at all, i.e., the JTextArea never updates:
        Thread updateText = new Thread() {
            public void run()
                for(;;)
                    try {
                        SwingUtilities.invokeAndWait(update);
                    } catch (InterruptedException ex) {
                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (InvocationTargetException ex) {
                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        Runnable update = new Runnable() {
            public void run()
                try {
                    texts.clear();
                    scrollToEnd(textArea);
                    for (int x = 0; x < texts.size(); x++) {
                        System.out.println("ADDED: " + texts.get(x));
                        textArea.append(texts.get(x));
                    Thread.sleep(100);
                } catch (InterruptedException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        };

  • Repaint() is not thread-safe?

    I saw a description that says repaint() is thread-safe in an old swing tutorial, but not in the current tutorial and its javadoc. So can I assume repaint() is not thread-safe and I should call it from EDT? ... Or if they are thread-safe, why does Sun not document it?

    repaint() calls paint() on EDT... but it calculates dirty region on the current thread and does not get AWTTreeLock.I don't think so.
    repaint() is a java.awt.Component method and doesn't know about Swing's RepaintManager and dirty regions. There may be somthing similar at the AWT level that escaped me, but looking at the JDK1.6 source code, java.awt.Component.repaint() just repaints the whole component.
    Now repaint(long, int, int, int, int) has two versions.
    At the AWT level, it just posts a paint event for the specified region. No race condition, and no risk that he region be wrong, but possibility to invoke multiple paint(Graphics) that overlap, that is, to paint several times the same area - it may be an optimization problem, but it doesn't jeopardize the consistency of the drawing.
    At the Swing level, it does compute dirty regions. In Repaint manageer, the call to extendDirtyRegion(...) is protected within a synchronized block, but the code before that is not. From a quick look, that code is:
    1) walking up the component hierarchy to find the root, which may not be thread-safe, but a well-behaved application shouldn't change the hierarchy from outside the EDT.
    2) walking up a chain of "delegate" RepaintManager, which I knew nothing about... Apparently it's a sun's implementation specific construct, each JComponent can be assigne d a delegate RepaintManager. Again I would claim that such things should not happen outside of the EDT, but I haven't found documentation about this.
    Edited by: jduprez on Jul 20, 2009 2:37 PM
    so no, technically, I can't prove repaint(long, int,int,int,int) is thread-safe.
    But a well-behaved application that updates its widgets on the EDT shouldn't worry (that is, repaint(...) calls can still be invoked outside of the EDT).
    Edited by: jduprez on Jul 21, 2009 7:04 PM - typos

  • What does "Internal+Server+Error {error,badarg}" mean?

    What does "Internal+Server+Error {error,
    badarg}" mean?  I get this message on certain sites and whenever I try to install the updated versions of Adobe.

    Since you have issues with Adobe installation I would suggest you to check with Adobe on this. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • What does multi, one, premium and limited mean in the context of Indesign servers please?

    what does multi, one, premium and limited mean in the context of Indesign servers please

    You will likely get better program help in a program forum InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • What does 'kernel bug in process suhelperd' mean in very simple terms please

    what does 'kernel bug in process suhelperd' mean in very simple terms please

    Hi,
    Any that ends in a "d" tends to be a dameon process used by the System as a whole.
    As in launchd is the process that make sure all the Extensions and Kexts that run the OS are started.
    helper would refer to a specific thing  (the info you posted offers no reference to that and I don't know off the top of my head)
    The su would probably refer to the permissions this item has at that moment in time (su is normally a Terminal Instruction allowing temporary but high level access).
    Without more info about a possible link to an action within the OS or an app it would be hard to say if it is a real concern.
    It seems to refer to a conflict.  It could be that the item is not written for the current OS, is outdated via Upgrades for instance, or written in a way that is now Protected by the way the current OS works.
    Console Messages can be helpful when you can attribute them to specific events such as a Crash Log or the Action in an App matching a Time in the Log (you generally have to be watching).
    9:18 pm      Tuesday; January 6, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • What does ubd.exe and tccd.exe mean?

    what does ubd.exe and tccd.exe mean in activity monitor?

    Yes it is a check to see if you have Google Toolbar (a nasty piece of software - I never use it myself).
    Bookmark these links:
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    They will always have the latest Flash Player builds and NO bundled software. Whenever you see an "update" notice, download the installer from the link(s) and run it (them) offline to update. MUCH safer and hassle free.

  • What does an exclamtion mark on files mean?

    What does an exclamation mark on files mean?

    Thank you.  It occurred to me that the connection to my external drive might
    be the issue and it was, even though I had not physically disconnected it.
    Thank you for your response.
    email: [email protected]

Maybe you are looking for