Urgent Tricky problem... I challenge you all....

I'm working on a very cool freeware Java text editor, that is working beautifully, except for the code used to change the color of reserved words, etc, on the fly...
At the moment, I use a documentlistener. When text is inserted, I need to color some of that text automatically. However, when I try to call setCharacterAttributes in DefaultStyledDocument, it causes a runtime exception, Illegal State Exception (Attempt to mutate in notification)>
I understand how this exception is caused, but how do I get around it?

Hi,
You'll need to modify the color after your DocumentListener event handling is finished.
SwingUtilities.invokeLater( new Runnable() {
  public void run() {
    //setCharacterAttributes ...
});Then the change is done when the document is no longer locked.
Hope this helps,
Kurt.

Similar Messages

  • My entries for serial number, apple id, and passwords are rejected.  I need serious help.  Thank you all.

    On my IMac using Yosemite 10, I cannot find any of my passwords.  When I enter information that is mine, I see it's not valid.  Cannot seem to get help anywhere.  I don't know my keychain password so cannot find my lost passwords.  Any help you all can give me will be so very appreciated.  I am a little old 80 year old Apple user who is out of her depth trying to fix the problems.  Thank you all and hurry.

    Cannot seem to get help anywhere.
    Where did you seek help from?  If your iMac is still under warranty and/or you have AppleCare, you can call Apple tech support.  Since you have an iMac, a tech will come to your home to troubleshoot if it cannot be done over the phone.
    I don't know my keychain password so cannot find my lost passwords.
    Finder>Go>Utilities>Keychain Access.app.  You do not need a password.
    Anybody else has access to your comp?
    Check out the various Knowledge Base Articles:  CLICKY CLICK--->Apple ID Support
    Serial#s you will need to set up new ones.

  • Derivation Rule Problem - Sales Order -CHALLENGE TO ALL SD CONSULTANTS

    Hi Friends
    I am stuck on i very critical issue, i am not able to solve it, I am SD consultant, i wrote this issue on FI forum also, but i did not get complete solution, they write me back it is SD issue.
    When i create a new sales order and click enter, a small screen open and message displayed on it "Error occurred in Derivation Rule, See long text"
    And when try to save sales order in display incompletion log. When i press on edit to complete it message display " Item 10 ... Missing data- Profitability Segment No.
    When i press on complete data - Account Assignment screen open (Business Area 9900)
    Would you please send me solution with complete path to fix this problem
    If you can give your email address, i will send you screen shot of the problem.
    I have tried KEDR transaction issue also but nothing happened.
    This is BIG challenge to all SD consultants now. Send me step by step solution
    If you send my your email id, i will send actual error saved in word format.
    Thanks
    Rajesh
    Email: [email protected]

    Good luck!
    to get a solution you need to provide the members of this forum with details regarding your PA set-up.
    PA is normally very customer driven, so not standard.
    Without information regarding your structure there you will not get any solution.
    GL
    Hein

  • Hi,  I'm having a problem with the stabilization all of a sudden. I did an analyze. The amount of shake isn't terrible but it's there. There are no squiggly lines in the clip I'm trying to stabilize. As you can see in the screenshot that it allows me to c

    Hi,
    I'm having a problem with the stabilization all of a sudden. I did an analyze. The amount of shake isn't terrible but it's there. There are no squiggly lines in the clip I'm trying to stabilize. As you can see in the screenshot that it allows me to click the "Smooth clip motion" but the slider is not there for zoom. Any ideas why this is happening all of a sudden? It happens on all clips in this event. The entire event was analyzed after importing.

    What program are you using for this editing?
    We can ask a Host should move your query over to that forum.

  • Since I downloaded Maverick, I cannot find my External Hard Drive in the "Finder" area. I have to unplug all the time the hard drive to be recognized by my iMac. How can I fix this problem? Thank You.

    Since I downloaded Maverick, I cannot find my External Hard Drive in the "Finder" area. I have to unplug all the time the hard drive to be recognized by my iMac. How can I fix this problem? Thank You.

    Check Finderr->Preferences->General and ensure that HDs are selected for display. If so and they still don't, Reset the NVRAM/PRAM and Reset the SMC, and see if that does the trick.

  • Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between

    I have an airport extreme and express setup. My extreme is in my 2nd floor office with windows facing the water. My dock is about 250 ft away down a very steep hill. I have the express about 100 ft down the hill in an electrical waterproof box attached to a tree as high as I could install. The signal is weak and I'm thinking I might have to buy another express. Any thoughts on the best setup for me. I ultimately want to control speakers(hard wired in) down at the dock with my iphone. I have a receiver coming with airplay built in.
    Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between extreme and dock, no better. I unplugged the express between extreme and dock and there was no difference. So I believe I am connecting to the airport express or extreme that is inside the house. Again because when i approach express that is halfway I reconnect. so if you can understand my chaos, I believe the express in between is not really connecting to the extreme inside my house. Yes, No? So I need to know how to know if the express half way down the hill is getting the connection from the the extreme in the house. This is wearing me out!!!!!

    You are asking several different questions. If you need to store your photos, music, and movies on an external volume, you certainly can. Any externally connected hard disk drive will work, connected either directly to your Mac or to your Time Capsule as a shared volume.
    You should not rely upon using that as a backup device though. Although you certainly may use it for both purposes, it is a better idea to have dedicated backup devices for a variety of reasons not limited to redundancy. You would not want to simultaneously lose all your pictures as well as your backup. If they are all on the same device, that could happen. Furthermore, a backup cannot back up the volume on which it is running.
    As for adding an Extreme or Express, using its LAN port for your iMac, and then enable Internet sharing so you can effectively use the iMac as a "hotspot", you can do that too, but I am unclear on what benefit you believe this arrangement would convey for you.
    An Extreme's Guest network is separate from its Main network; that is the reason for having it.

  • I updates my iPad with the latest iOS and despite backing up all the information prior, my iBooks application was deleted along with a hundred important PDFs on it. Is it possible to locate these missing files? Urgently requires assistance. Thank you!

    I updated my iPad with the latest iOS and despite backing up all the information prior via iTunes, my iBooks application was deleted along with a hundred important PDFs on it. Is it possible to locate these missing files? Urgently require assistance. Thank you!

    Hi Sam,
    I understand where you are about being your own IT department, it can be overwhelming ...
    What drives to buy depends an awful lot on how you will use them, what your budget is, and your preferences.
    In the case of your DP Powermac, for online storage used primarily for editing, I would add one or more internal drives first. Look for drives that are at least 7200rpm and have at least an 8MB cache. 10,000rpm/16MB cache is even better, but more expensive. Seagate Barracudas have always been good choices.
    For backup purposes, I'd pick some good external FireWire drives; you can also use these for online editing, lots of people do. Your Mac has both FW400 and FW800 ports - either kind is fine but if you get drives that support both, you would want to connect them to the FW800 port for the added performance.
    In my experience, the Lacie d2 Extreme drives have been very very good. In fact I have 3 of them daisy-chained off my iMac G5 right now and they work flawlessly with FCE. Weibetech and Granite Digital drives are further upscale in performance and price. RAID configurations would be even further upscale. Do stay away from consumer level hard drives, however ... the Western Digital MyBook series & no-name drives come to mind ...
    Don't use a FireWire hub for your external drives, it's just asking for trouble.
    ps. And thanks for your nice comment about me. I'm happy to help, as are other folk in the forum.

  • Are you aware about bash security issue CVE-2014-6271 ? Do you have a patch for that? The problem may exist in all Solaris versions.

    Are you aware about bash security issue CVE-2014-6271 ? Do you have a patch for that? The problem may exist in all Solaris versions.

    The official communication is now posted to
        https://blogs.oracle.com/security/entry/security_alert_cve_2014_7169

  • I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and  all the latest event files, can you help how to solve the problem? Thank you  Model Name iMac    Model Identifier:     iMa

    I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and I lost all the latest event files, can you help how to solve the problem? Thank you
    Model Name:     iMac
    Model Identifier:     iMac8,1   Processor Name:     Intel Core 2 Duo
    Processor Speed:     2.4 GHz

    http://support.apple.com/kb/HT2638?viewlocale=en_US&locale=en_US

  • Foofle Toolbar is not compatible with Firefox 5. Throughout all the Firefox updates, there has never been this problem. Did you screw up?

    Google Toolbar is not compatible with Firefox 5. Throughout all the previous Firefox updates, there has never been this problem. Did you screw up?

    I wish it were that but a long time ago when I had a problem with the gadgets with iGoogle back 6 months ago thereabouts I was asked to disable it then and I did and I just went to re-check and it is still not enabled, however, it will not let me un-install it though.. It only gives me an option to enable or disable.. Any advice ? So I'm wondering if it is something else still or is there a problem with the avast still ?
    thanks again for your help. Mind you that this all started when blogger went down ..
    take care

  • Urgent JMS Problem,Help!!

    I meet a urgent problem about JMS,I use wls61 sp1
    but when serverl MDB subscribed to one topic,problem
    accur and not all of the subscriber seems to receive the
    message,I know that sp2 have slove the bugs.but I just
    want to get the patch of jms for wls61sp1.
    This is very urgent,can anyone help me to
    get the patch?
    Thanks a lot

    This sounds like the symptoms that I am currently suffering,
    under Weblogic 6.1 SP2.
    My situation is that I have processes on several "satellite"
    Weblogic servers that all subscribe to the same set of several
    JMS Topics published by a "central" Weblogic server. The servers
    are all using Weblogic 6.1 SP2 (non-clustered). It appears that
    only one of the subscribing "satellite" servers receives the
    messages published. After a couple of experiments, it appears
    that the first "satellite" server to register with the Topics is
    the one that receives the messages, even if that "satellite"
    server is restarted, until such time as the "central" server is restarted.
    It appears from Eric's message that there is a patch for this.
    How do I go about getting a copy of the patch? Or is my problem
    different?
    Thanks,
    -Chris-
    "Eric.Nie" <[email protected]> wrote:
    >
    I have got the patch,Thank u very much
    Ravi Akella <[email protected]> wrote:
    Are these subscribers on the server. If you could provide some more
    info about the problem I will try to help you.
    Ravi Akella.
    "Eric.Nie" wrote:
    I meet a urgent problem about JMS,I use wls61 sp1
    but when serverl MDB subscribed to one topic,problem
    accur and not all of the subscriber seems to receive the
    message,I know that sp2 have slove the bugs.but I just
    want to get the patch of jms for wls61sp1.
    This is very urgent,can anyone help me to
    get the patch?
    Thanks a lot

  • Here ia a challenge to all Geeks!

    Hi I have just discovered that  seatools dos does not recognize my HD. So I downloaded two more dos programs. WD and Hitachi dos. They do not recognize my HD either. I have been fighting this all week end, and I haven't found a answer to this problem; so I offer a challenge to all members and Geeks. What is the problem?? WD exe is the only App that thinks I'm alive. My PC is running flawless, but would like to check HD with a dos program. This is crazy or maybe I'm crazy. I have at least 6 coaters to give away. I may consider a reward for the solution I will try to suppy all the information that is asked for. I really hate being defeated, but I'm out of ideas on this one. Each of the programs ask me for a serial number, but won't except the one in screen shot. I will try all and every suggestion that is offered.
    Dokie!!
    PS I hace at least 8 CD's with bootable dos to give away.
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    Capture48.JPG ‏221 KB

    WD exe passed the extended test, but  the WD dos will not recognize the HD . That makes no sense to me at all. Three different dos programs and none of them recognize my Hitachi HD. I suppose I should be happy that my HD is healthy and I am but this is crazy.
    Dokie!
    PS I hate computers
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    Capture49.JPG ‏214 KB
    Capture48.JPG ‏200 KB
    Capture50.JPG ‏211 KB

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Did you delete all receipts with iDVD in the file name  with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder before installing the new copy?  If not then do so and delete the new application also.
    Click to view full size
    Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
    OT

  • When I try to transfer songs to my ipod touch or my friends ipod nano in which both have manually managed music, I get error 13019 "Ipod cannot be synced".  This problem started to occur all of a sudden. Any ideas other than the resyncing?

    When I try to transfer songs to my ipod touch or my friends ipod nano, I get error 13019 "Ipod cannot be synced".  Everything was working fine and transferring successfully and then this problem started to occur all of a sudden. My music is managed manually and always has. I looked online for a solution and they all involve resyncing the library and unchecking voice memos. Is there a way to resolve this issue without having to resync my music or reinstall itunes?

    Have you powered off and then back on the router?
    Have you done anything to the router recently like changed a setting?
    Have you tried:
    - Resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Resetting network settings: Settings>GeneralReset>Reset Network SettingsTo me the error sounds like a network/router problem vice aan iPod problem.

Maybe you are looking for

  • Apple Mail no longer showing unread messages in dock

    Apple Mail no longer shows unread e-mails in my dock.  I recently upgraded to 10.8.4.  The program is running and I have tried the various "Dock Unread Count" settings in Preferences.  I have also rebuilt the library envelope index files to no avail.

  • Wont print black with new cartidge

    i have an all in one b111 series hp photosmart 5510 printer it will not print black at all. what can i do to fix it. i have tried all the trouble shooting tips on the site and also the things on the printer like cleaning the print head.

  • Another J2EE server start-up problem.

    Hi: For many days, I have being having trouble starting the J2EE server... When I try to start the server, the starting process terminates mysteriously. Finally, I identified this error in my log: "Failed to create RMI-IIOP server because: null" I st

  • Could not complete the iTunes Store request. The store may be too busy.. What?

    After I updated iTunes I always get this message. I can't change country stores and I can't access my account. I can still buy music thankfully but can't report any songs or albums if it has problems.

  • Has anyone got a answer to the HDCP drama?

    Yesterday I could watch a movie via Itunes and ATV (software ver 4.3), today I cant! That dang HDCP error message leers at me through the screen.There are MANY people with this issue, and there certainly doesn't seem to be a particular answer. What d