InDesign slowing down (MacPro)

Hello. In some events, InDesign (6.0.2) slows down when working with text. This happens with various typefaces (e.g. Adobe Pro fonts), on single or few pages, a couple of styles, some text wrap, justified text, nothing fancy, no line art, very few images, typical display performance, newly installed 10.5.7, all other apps running smoothly with the 3G ram I have. Slow means: I try highlight one word by double clicking it with the type tool. Application beachballs me for 25 secs. Then I go cmd-. (increase point size), or opt-cmd-right arrow, beachball 45 secs. Etc.
This is not exactly repeatable. Restarting the app doesn't necessarily help. Any ideas? Specific tests?
Thanks a lot.

Dear Peter,
just to catch you up on this problem. I did speak to an Adobe person, and his opinion was that the slowdown was related to a corruption in the document file, and not InDesign.
I'm also sorry to say that the Adobe tech support person couldn't understand my statement that it could have been a corrupted master page.
He asked me to quit InDesign. He also had me throw away (from Hard Drive—Library—Application Support—Adobe—SING—Mark II, a folder called "datastore") the "datastore" folder, which regenerated itself when I relaunched InDesign.
I went into my document and changed the master pages for the problematic articles (this was a journal), and all seems to be working ok. It seemed to be a corrupted master page, a problem I've actually had before, but I don't know how that happens. I just lacked the energy to try to get him to understand the master page corruption problem.
Thanks for your help.
detta

Similar Messages

  • "No pool in place - just leaking" Error slowing down MacPro

    Whenever I am running the creative cloud app. I am getting this error message in my console:
    Creative Cloud[4627]: objc[4627]: Object 0x792c53f0 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    It comes up every half a second, and is slowing down my computer...
    please help! I was on the phone with tech support for over an hour, and no  help at all.
    Thanks,
    Leah

    HI,
    autoreleased with no pool in place - just leaking
    Do you have an iPhone?
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/20720-autoreleased-no-p ool-place.html
    I have the same messages in Console also. I don't think it's anything to be concerned about. It's just programming language.
    Carolyn

  • Indesign 2 slows down to a snail's pace after 10-15 min. Help!

    I have used Indesign with Creative Suite 2 Premium for a few years with no problems. About 6 months ago I bought an external hard drive to use as a back up device for my hard drive. Not long after that I had problems with my computer and figured out that the external drive was causing a problem with startup of the hard disk. So now I leave it turned off except for times when I want to back up files. I give that history because that's the only problems I've had. A few months ago I had the same thing happen with Indesign slowing down after use. I've tried having it as the only program running. I've tried only using it after startup. Nothings seems to make a difference. I have to reboot the computer to get it to be functional for about 10-15 min. All other programs on my computer are running normally including Illustrator and Photoshop. Should I just upgrade? Uninstall & reinstall? I don't know much about changing my system settings or the super technical stuff. Any help or suggestions would be appreciated.

    There are a lot of things that can cause slowdowns.
    Disable Version Cue if you don't use it, for starters. Then look at the hard drive. How much free space do you have? Empty the recycle bin and the temp folders, and defrag.
    Run virus and spyware scans. You might be surprised by what's running without your permission and using system resources.
    Peter

  • Iphoto library seems to slow down my new MacPro.

    so far no one at at the Apple store can have a solution why the new MacPro is RATHER  slow.
    some did suggest that the iphoto library MAY BE  too big...
    also, when I work with it ..( it contains over `12000 items) ..it machine works hard and slow.
    who can help ?
    establish another library ?
    safe the pics on an external harddrive ?
    appreciate your ideas and help,
    heinz

    Open the Activity Monitor when iPhoto is slowing down your Mac and see what processes is soaking up all the CPU cycles.  Also check the Console for messages during that time.  It can also give info as to what's slowing things down.
    Do you have any anti virus software installed or have used MacKeeper, CleanMyMac or similar type of software on your Mac?
    OT

  • Macpro slowing down cant access FB

    my macpro is slowing down.. it loads slower that i cant even access facebook

    Clone the system with SuperDuper
    Repair the clone
    Do a Safe Boot and then a normal restart
    System maintenance and backups.
    Too often people with laptop think this forum is for them, it is for workstation though.,
    It is hard to imagine a workstation with 4 or more cores and even a paltry 2GB RAM being slow unless it isn't maintained.
    Reading page outs, free space, free memory.....
    Of course everyone expects or doesn't know what to include, what they will be asked, so we play 20 questions to figure out why,. And know what? there are literraly 1000+ threads in OS System Software forums of the same nature, over and over with much the same 'tips' and such. And I'd say laptops are most frequent to have slow systems. Mayhbe not always.

  • InDesign CC slows down significantly upon placing a Microsoft Word for Mac 2011 file

    I'm running the latest Mavericks OS on a brand new iMac 27" 3.5 GHz Intel Core i7 computer with 32 GB RAM. The slowdown occurs even if ID is the only app running.
    The Word files consist mainly of text which are typically book maunscripts. It doesn't seem to matter whether the files are large or small. They all cause ID to slow down. We want to import the Word files so as to preserve mainly any italics.
    Once the ID document contains a placed MS Word file, the slows are apparent mainly in:
    Selecting a text box: 20-30 sec lag waiting for the beachball until it selects
    Clicking to place the insertion mark: an additional 20-30 sec
    Placing an image file: 20-30 sec for the import dialog to appear, 20-30 sec after the open button is clicked for the selected image to appear on the page
    We've tried uninstalling ID CC via the script in the app folder.
    We've also completely uninstalled MS Word follow MS's instructions, and reinstalling Word.
    We've cleaned up our fonts with Extensis' Font Doctor.
    We've deleted fonts we don't use.
    One of the main reasons for buying the new iMac was to hopefully benefit from the enhanced processing power, additional RAM, and clean installs of the software.
    What else can we try?
    Page layout for books using ID CC with Word is the bulk of our work and we need to resolve this matter ASAP.

    Thanks for the info, Bob. We've been Adobe pro customers since '87 and have been through a number of such hardware/software "leapfrogs." We basically love the CC products and the new Macs and Mavericks, so we're looking forward to the updates.

  • System Slow-Down After Printing

    I recently installed Mountain Lion. Over the last couple of weeks I have noticed a significant operating system (10.8.2) slow down after printing with my Epson R3000 printer. This happens after every printing session. When I say slow-down I mean significant delays and dreading "beachballs" when opening applications, selecting menu items or anything else I should choose to do. I'm left with re-starting the computer to get going normally again.After re-atarting I have gone to "verify permissions" and I get approx "5" pages of permission errors, all associated with the printer library in some fashion or another. I then repair all those permissions and re-start my MacPro. The operating system then works as normal and I can use the computer with no problems (until I start printing again). I mainly use the computer for photo editing with Adobe Photoshop CS6, Adobe Lightroom 4 and Aperture 3.2.
    I did not have this problem before upgrading to Mountain Lion (and then to 10.8.2). I did not get "significant" permission errors before upgrading. Since all printer drivers for this printer are handled now by Apple via the "new" Software Update process I can't even re-download the Epson printer driver and start over. I'm completely at a loss as to what, associated with the printer function, is causing these "significant" permission errors and subsequent operating system slow down. My printer is almost brand new and was working flawlessly before Mountain Lion. Let me be clear though, I can print fine. My problem is the system slow down after using the print function which I am only guessing has something to do with the "5" pages of permission errors after printting photos (with CS6/Lightroom/Aperture).
    Incidently, I am not in any way a computer expert. Verifying and repairing permissions is about all I know how to do that's why I need help. I also just thought I would try the forums first before going to technical support to see what people thought about this.
    Again, I repair the permission errors, re-start my system and all is fine. Any further suggestions would be deeply appreciated.

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • My external hard drives seem to slow down my iMac

    Hello,
    I've encountered an odd situation in that the external hard drives I use to hold all of my files seem to slow down the performance of my iMac. I have two Lacie 1 tb externals plugged into my 2006 2.0 Ghz iMac with 2 gig of ram. I've had these two externals for about two months and for the same amount of time, any other item (ipod, card reader, thumb drive) I'd plug in would take several min to mount onto my computer. From there, the data transfer from my external or internal hard drive is slightly delayed and slower as well.
    I unmounted these externals today and plugged in a thumb drive to test and it immediately mounted to my computer! I never thought an external could effect the mounting of other, smaller, externals!
    I'm just wondering if there's anything I can do to fix this problem? My itunes music files are stored on my externals and I'm a photographer, so I'd need regular access to my externals to get to my pictures.
    Thanks for all your help. I can usually find the answer to my problem by browsing around in discussions, but I find this situation to be a bit of a unique one!

    kromedomio wrote:
    Sorry, It's connected to my iMac via Firewire 400. I have the externals connected to each other via Firewire 800.
    In regards to types of files, I have my itunes library, photo (Raw Canon 50d files), Adobe (photoshop, indesign, illustrator) and Word files all on the external. I basically moved everything off my internal and store it all on my external now, so I'm accessing it a lot through the day.
    I'm wondering just why you did that. Surely you know that F/W 400 is much slower than your internal HD?
    I'd be inclined to move things that involve heavy I/O during editing (photos and videos, especially) back to the internal. I suspect you'll see a large improvement.

  • Major slow down - spinning beach ball all the time

    My MacPro increasingly suffers from major slow downs, mainly when using iTunes and renaming, deleting songs. My library is on a NAS server. Sometimes my Mac becomes unresponsive for minutes, simple things like resizing windows takes extremly long. Something ain't right!
    Here is an example: I wanted to delete a few songs from iTunes, which virtually locked my Mac up for minutes. Console says:
    18.04.10 14:59:45 fseventsd[65] SLOWDOWN: client 0x100826000 (pid 265) sleeping due to too many errors (num usleeps 1817)
    18.04.10 14:59:45 fseventsd[65] SLOWDOWN: client 0x105000400 (pid 6368) sleeping due to too many errors (num usleeps 1817)
    18.04.10 14:59:48 diskarbitrationd[13] Finder [265]:50663 not responding.
    18.04.10 15:00:05 fseventsd[65] SLOWDOWN: client 0x101866a00 (pid 6356) sleeping due to too many errors (num usleeps 1823)
    18.04.10 15:00:05 fseventsd[65] SLOWDOWN: client 0x102829c00 (pid 1579) sleeping due to too many errors (num usleeps 1823)
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:07 com.apple.Dock.agent[263] Sun Apr 18 15:01:07 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 com.apple.Dock.agent[263] Sun Apr 18 15:01:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 com.apple.Dock.agent[263] Sun Apr 18 15:01:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 com.apple.Dock.agent[263] Sun Apr 18 15:01:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:08 com.apple.Dock.agent[263] Sun Apr 18 15:01:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:01:09 com.apple.Dock.agent[263] Sun Apr 18 15:01:09 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:02:22 fseventsd[65] SLOWDOWN: client 0x105000400 (pid 6368) sleeping due to too many errors (num usleeps 1865)
    18.04.10 15:02:22 fseventsd[65] SLOWDOWN: client 0x100826000 (pid 265) sleeping due to too many errors (num usleeps 1865)
    18.04.10 15:03:01 fseventsd[65] SLOWDOWN: client 0x102829c00 (pid 1579) sleeping due to too many errors (num usleeps 1873)
    18.04.10 15:03:01 fseventsd[65] SLOWDOWN: client 0x101866a00 (pid 6356) sleeping due to too many errors (num usleeps 1873)
    18.04.10 15:03:32 iTunes[685] sendmessage: Could not securely send message size 406: SSLERRORSYSCALL errno (Broken pipe)
    18.04.10 15:03:32 iTunes[685] AMDeviceStopSession: Could not stop session with device: kAMDUndefinedError
    18.04.10 15:03:32 iTunes[685] sendmessage: Could not securely send message size 325: SSLERRORSSL (error:1409F07F:SSL routines:SSL3WRITEPENDING:bad write retry)
    18.04.10 15:04:49 iTunes[685] sendmessage: Could not securely send message size 406: SSLERRORSYSCALL errno (Broken pipe)
    18.04.10 15:04:49 iTunes[685] AMDeviceStopSession: Could not stop session with device: kAMDUndefinedError
    18.04.10 15:04:49 iTunes[685] sendmessage: Could not securely send message size 325: SSLERRORSSL (error:1409F07F:SSL routines:SSL3WRITEPENDING:bad write retry)
    18.04.10 15:05:01 mdworker32[21822] kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:08 com.apple.Dock.agent[263] Sun Apr 18 15:10:08 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 com.apple.Dock.agent[263] Sun Apr 18 15:10:10 peter-boehis-computer-7.local Dock[263] <Error>: kCGErrorIllegalArgument: CGSSetWindowTransformsAtPlacement: Singular matrix at index 45: [0.000 0.000 0.000 0.000]
    18.04.10 15:10:10 Dock[263] kCGErrorIllegalArgument: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    Hope anyone can make sense out of that!

    There have been loads of threads dealing with SL & spinning beach balls. I have had/having these issues still.
    Current setup:
    MacBook Pro 2.53Ghz running SL 10.6.4 - non-Apple installed HD (seaGate 320BG 7200RPM)
    Issues: SBBOD at any given time, some more frequent than other times (no specific time interval). Have reboot, SMART status, Apple hardware test, re-installed SL, root user. Results: still the same issue.
    Possible workaround (test in progress):
    Removed seaGate 320BG 7200RPM and put back the original 5400RPM disk and mount seaGate 320BG 7200RPM with an external USB case. Results: snappy as he*ll, no more issues.
    Next round: refit the seaGate 320BG 7200RPM once more to see if just removing/adding disks helps.
    If the SBBOD then still occurs, the only conclusion I can make, is that the seaGate 320BG 7200RPM is somehow not compatible. This could be due to its speed or some other issue (having this disk external causes 0 SBBOD issues).
    If this will not work, I will then proceed to clone the data of my seaGate 320BG 7200RPM to the original 5400RPM Apple fitted disk and take it from there.
    If that setup will neither work, I will then finally move back to the shop and have Apple check it out.
    Good luck.

  • Slow down tempo of iTunes recordings in order to transcribe

    I transcribe iTunes interview recordings, but I don't type as fast as my interviewees speak. So I need to slow down the recordings. At the Apple store, the consultant said to use the metronome, but I tried that and it doesn't work. On a brand new MacPro at the store, however it worked for him. Is this something new in GarageBand '11 or is there a trick to making it work in GarageBand '09? My software is up to date.

    litterbox wrote:
    I need to slow down the recordings.
    http://www.bulletsandbones.com/GB/GBFAQ.html#changeimportedtempo
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Slow down when using SHARE function?

    Whenever I use the share feature to wirelessly transfer files from my Mac Air to my Macpro everything on my macpro slows down. the mouse moves slow- windows take forever to respond- or just will not close at all. I tried switching my wireless mouse to a wire and same issue. Shouldn't the transfer be a background task? Why is it effecting the overall performance of the machine?

    Your explanation makes sense; I had not considered the output size because I thought that the application would make all the necessary adjustments to the size I chose.
    I was not able to find the square pixel reference (below is the advanced area) but I did resolve the issue. At first I changed the output to be 400 x 300, and while the bars still existed, they were greatly reduced. So I took a screen capture and in Photoshop measured the height of the remaining top bar at 3 pixels. So, I reduced my height in PrE7 by a total of 6 pixels to 294 and that completely corrected the issue. Thanks for your help on this.

  • Virus (?) slowing down the entire network ?

    Hi, my problem is following:
    about a month ago, I started to have this issue. Whenever i plugged my macpro to the internet, the speed of entire network had rapidly slowed down. Other computers in the house had fallen to an extremely slow download/upload speed, but my mac speed remained quite well working (except the ram memory, which was in pretty low numbers). When I unplugged my mac from the connection, others' speed went immediately up.I called my network manager, and they told me that my network is sending 500mb to the internet, although any of my computers wasn't sending anything (visibly of course).
    I identified it as a virus, so I launched my Mackeeper antivirus, but it didn't find anything! I desperately decided to reinstall the software (the mountain lion version). (maybe it's worth mentioning that I didn't reinstall it from the cd, i didnt get one when I was buying it, it has it somehow installed inside). When I reinstalled it, I once more upgraded the system to OS Mavericks. After these two reinstallation, I again ran my Mackeeper antivirus, and it finaly identified some kind of virus. I eliminated it and for about two weeks it went very well. But now its happening again! I dont want to reinstall my mac, and my Mackeeper isn't finding anything again. How to get rid of it? Please help!

    I like the Mackeeper abilities, like cleaning the disc or finding your mac when stolen, ect..
    That's a bit like saying you like the fact that your doctor can get rid of the bad humours in your blood by leeching you.
    Macs do not need cleaning, and in fact, overzealous cleaning can cause performance problems or even damage to the system. See The myth of the dirty Mac.
    As for locating your Mac when stolen, you should know that your Mac can do that already. If you have an iCloud account set up, just turn on Find My Mac in System Preferences -> iCloud. It reeks of scam for a program to require you to pay for an ability that your Mac already has.
    All the features of MacKeeper can be done just as well or better by other free or cheap software, and the company behind it has a long history of unethical behavior. It's not something you want to be messing with.
    Ultimately, it's your choice, of course.

  • Preflight check in CS5 dramatically slows down file opening

    The preflight check option in InDesign does not seem to run in the background. As a result, it now takes around 5 times longer to open a file, as you have to wait for the preflight check to finish before you can do anything. Sure you can turn it off, but that kind of defeats the point of having it. Is there any way to configure it so that it runs in the background, or is this just another feature that is basically rendered unusable?

    What I am seeing is this: I open an InDesign file. The spread appears and all the objects placed on that layout appear, just as usual. Then I get the spinning beachball, which coincides with the preflight checking the file (you can see the word "checking" in the bottom left of the frame). The beachball stops and I can finally access the file once the preflight chack is complete. So, on that basis, it doesn't seem to be running in the background. Turning preflight off eliminates the problem. So yes, the file is open and visible, but I can't get at it until the preflight check is complete.
    For reference, I am using OS 10.6.6 and InDesign 7.0.4.550.
    Note that using the Basic preflight check, I don't get these problems, but using a custom profile, I do. I started trying to see if I could pinpoint what in the extra checks was causing the problem, but I failed: I took the basic profile, which works fine, and added the first extra check from my custom profile, which is to Check OPI Links in LINKS. I immediately got the slow down. But unchecking that in my custom profile, didn't speed things up, which suggests that it's more than one thing. If it helps, my custom profile is cheking for:
    LINKS
    Links missing or modfied
    Inaccessible URLs
    OPI Links
    COLOUR
    Transparency blending space
    Colour spaces not alowed
    Overprinting applied to white
    Registration applied
    IMAGES & OBJECTS
    Image resolution
    Interactive elements
    TEXT
    Overset text
    Font missing
    Glyph mising
    Font types not allowed
    DOCUMENT
    Bleed & slug setup

  • My iMac 8.1 was slowing down and had permissions problems. I backed everything up, and then re-installed. Now all I get is a black screen. Power+D gives me a hardware error message: HDD-1336. Help!

    My iMac 8.1 (10.6.8 ) was slowing down and had recurrent permissions problems, mostly with Java. I backed everything up, and then re-installed from time machine. Now all I get is a black screen which says I need to reboot. Power+D gives me a hardware error message: 4 MOT/1/40000003: HDD-1336 or HDD-1327. When I reboot from the OSX CD and start disc utilities everything checks out OK. When I reload 10.5.2 from the OSX CD everything seems to work OK and no more permissions problems. But then I loose all my email and safari stuff. Anyone have any ideas short of going back to my old PC?

    DonM. wrote:
    Hi
    Thanks for the help. No point in fooling around with it any more. Will I be able to use it as a monitor if I get a mimi mac?
    Cheers. Don
    No unfortunatley it's too old, you are referring to Target Display Mode which became avialble in 2009, your 2008 needs to have the HD replaced. I'd still do that if everything else is OK or you can simply buy a new MM and display or even a new iMac  or an Apple refurbished iMac to save money.

  • Timer Class not accurate and slows down my animation!?

    Does anyknow how why my timer object is not accurate and why it slows down my animation that is also present on my GUI at the same time?
    I have a timer in the form of 0.00 the left of the decimal point should represent a second but it doesnt, run my code and see for yourselves. below is my code if anyone can fix these 2 problems i will be very thankfull:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.Shape;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.Timer;
    import java.sql.*;
    import java.text.*;
    public class RT extends JFrame implements MouseMotionListener
        //declares a number of swing componets to be used for the JFrame
        private JTextArea infoJTextArea;
        private JPanel showJPanel, startJPanel, helpJPanel, resultsJPanel;
        private JLabel de4JLabel, de3JLabel, mainTitleJLabel, nameJLabel, ageJLabel,
                       deJLabel, de1JLabel, de2JLabel, timeJLabel,nameResultJLabel,
                       ageResultJLabel, timeResultsJLabel, ratingJLabel, coJLabel, shJLabel;
        private JTextField nameJTextField, ageJTextField,nameResultJTextField,
                       ageResultsJTextField, timeResultsJTextField, ratingJTextField;
        private JButton exitJButton, showJButton, loginJButton, startTestJButton,
                        tempObjectJButton;
        private JScrollPane scroll;
    public JComboBox colourJComboBox, sizeJComboBox, shapeJComboBox, speedJComboBox;
    private static Connection dbcon;
    int temp=0;
    private String[] col = { "Red", "Blue", "Green","Yellow","Orange","Black"};
    private String[] shapeA = { "Normal Rectangle", "Normal Circle", "Normal Oval","BIG Rectangle", "BIG Circle","BIG Oval","small rectangle","small circle", "small oval"};
    private String[] speed = { "Fast", "Normal", "Slow"};
    public int checking;
    static int flag, flagshape, flagspeed;
        // creates and sets up a number of varibles to be used by the class
        public long timeLimit = 0;
        DecimalFormat timeDec = new DecimalFormat (":00");
        public int age;
        public String name, shapeChoice="Normal Rectangle(Never selected anything)", colourChoice="Black(Never selected anything)";
        private Timer TimeNow;
        private JTextField timerJTextField;
        ShapeMovingPanel testJPanel;
        Random seed;
        Shape shape;
        Shape[] shapes = {new Rectangle2D.Double(50, 30, 75, 25),new Ellipse2D.Double(175, 125, 50, 50),new Ellipse2D.Double(90, 100, 75, 35),new Rectangle2D.Double(50, 30, 175, 125),new Ellipse2D.Double(175, 125, 125, 125),new Ellipse2D.Double(90, 100, 175, 135),new Rectangle2D.Double(50, 30, 55, 15),new Ellipse2D.Double(175, 125, 20,20),new Ellipse2D.Double(90, 100, 55, 15)};
    //50, 30, 75, 25 change starting point here****************************************
        public RT()            // constructor method
            seed = new Random();
            shape = shapes[0];
            //sets up the Timer
            TimeNow = new Timer((1), new TimerListener());//++++++++++++++++++++++++++timer -17
            createUserInterface();          // method that creates the user interface     
        private void createUserInterface()
            new Thread(new Runnable()
                public void run()
                    String results = "";
                    int count = 0;
                    boolean journeyOn = true;
                    while(journeyOn && count < 3)
                        try
                            Thread.sleep(1000);
                        catch(InterruptedException ie)
                            System.err.println("show interrupt: " + ie.getMessage());
                            journeyOn = false;
                        results += count++ + ", ";
                    try {
                             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                             dbcon = DriverManager.getConnection("jdbc:odbc:CMT3991", "", ""); // Access/ODBC
                          //connection ash used to connect to the user table in access
                           } catch(Exception eee)
                           eee.printStackTrace();  //exception if error occurs during the driver connection
                             System.out.println("* UserDA CONNECTED *");
            }).start();
            Container contentPane = getContentPane();
            contentPane.setLayout( null );
            // set up infoJTextField
            infoJTextArea = new JTextArea();
            infoJTextArea.setBounds( 20, 420, 550, 170  );
            infoJTextArea.setEditable( false);
            infoJTextArea.setText("\n    Welcome to the reaction testing program, this " +
                            "program is designed to test your reactions in a  \n"+
                            "    number of different situations.\n"+"\n    Please " +
                            "enter your name and age, or select show previous results.");
            contentPane.add( infoJTextArea );
            scroll = new JScrollPane(infoJTextArea);
            scroll.setBounds(  20, 420, 550, 170 );
            contentPane.add( scroll );
                  startJPanel = new JPanel();
            startJPanel.setBounds( 16,16, 560, 375 );
            startJPanel.setBorder(
                    new TitledBorder( "WELCOME - PLEASE ENTER YOUR NAME AND AGE:" ) );
            startJPanel.setLayout( null );
            contentPane.add( startJPanel );
            //sets up a JPanel
            mainTitleJLabel = new JLabel();
            mainTitleJLabel.setIcon( new ImageIcon( "title.png" ) );
            mainTitleJLabel.setBounds( 30, 10, 520, 170 );
            mainTitleJLabel.setHorizontalAlignment( JLabel.CENTER );
            startJPanel.add( mainTitleJLabel );
            //creates a newJLabel
            nameJLabel= new JLabel();
            nameJLabel.setBounds( 52, 200, 70, 35 );
            nameJLabel.setText("Name:");
            startJPanel.add( nameJLabel);
            //creates a new JTextField
            nameJTextField = new JTextField();
            nameJTextField.setBounds( 130, 200, 300, 24 );
            startJPanel.add( nameJTextField );
            //creates a newJLabel
            ageJLabel = new JLabel();
            ageJLabel.setBounds( 52, 245, 100, 35 );
            ageJLabel.setText("Age:");
            startJPanel.add( ageJLabel );
            //creates a new JTextField
            ageJTextField = new JTextField();
            ageJTextField.setBounds( 130, 245, 300, 24 );
            startJPanel.add( ageJTextField );
            //creates a JButton
            loginJButton = new JButton();
            loginJButton.setBounds( 440, 200, 90, 24 );
            loginJButton.setText( "Login" );
            loginJButton.setBackground( Color.YELLOW );
            startJPanel.add( loginJButton );
            loginJButton.setEnabled(true);
    //        loginJButton.setVisible(true);
            loginJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        // not necessary to pass events to these methods...
                        Login();  // calls the Login method                       
            //creates a JButton
            showJButton = new JButton();
            showJButton.setBounds( 200, 320, 180, 24 );
            showJButton.setText( "Show previous results" );
            showJButton.setBackground( Color.YELLOW );
            startJPanel.add( showJButton );
            showJButton.setEnabled(true);
    //        showJButton.setVisible(true);
            showJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        showData();   // calls the showData method                       
            //sets up a JPanel
            showJPanel = new JPanel();
            showJPanel.setBounds( 16,16, 560, 375 );
            showJPanel.setBorder(new TitledBorder( "PREVIOUS RESULTS:" ) );
            showJPanel.setLayout( null );
            contentPane.add( showJPanel );
            //sets up a JPanel
            helpJPanel = new JPanel();
            helpJPanel.setBounds( 16,16, 560, 375 );
            helpJPanel.setBorder(
            new TitledBorder( "CHOOSE A NUMBER OF OPTIONS AND GET READY:" ) );
            helpJPanel.setLayout( null );
            helpJPanel.setVisible(false);
            contentPane.add( helpJPanel );
            //creates a newJLabel
            deJLabel= new JLabel();
            deJLabel.setBounds( 23, 390, 530, 35 );
            deJLabel.setText("Details:");
            contentPane.add( deJLabel);
            //creates a newJLabel
            coJLabel= new JLabel();
            coJLabel.setBounds( 70, 40, 530, 35 );
            coJLabel.setText("Choose a colour:");
            helpJPanel.add( coJLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds( 25, 100, 530, 35 );
            de1JLabel.setText("You are about to start the reaction test, when you " +
                              "press the start button it will begin.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds(160, 145, 530, 35 );
            de1JLabel.setText("Simply catch the moving item and click.");
            helpJPanel.add( de1JLabel);
            colourJComboBox = new JComboBox( col );
               colourJComboBox.setBounds( 70, 70, 135, 21 );
               colourJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( colourJComboBox );
              colourJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                         colourChoice="Black";
                         int x = colourJComboBox.getSelectedIndex();
                        if( x  == 0)
                             flag = 1;
                             colourChoice="Red";
                        else if(x  == 1)
                             flag = 2;
                             colourChoice="Blue";
                        else if(x  == 2)
                             flag = 3;
                                colourChoice="Green";
                         else if(x  == 3)
                             flag = 4;
                                colourChoice="Yellow";
                         else if(x  == 4)
                             flag = 5;
                                colourChoice="Orange";
                           else if(x  == 5)
                             flag = 6;
                                colourChoice="Black";
            shJLabel= new JLabel();
            shJLabel.setBounds( 340, 40, 530, 35 );
            shJLabel.setText("Choose a shape and size:");
            helpJPanel.add( shJLabel);
            shapeJComboBox = new JComboBox( shapeA );
               shapeJComboBox.setBounds( 340, 70, 135, 21 );
               shapeJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( shapeJComboBox );
              shapeJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                          int xshape = shapeJComboBox.getSelectedIndex();
                        //shapeChoice="Normal Rectangle";
                        if( xshape  == 0)
                        {     flagshape = 1;
                             shapeChoice="Normal Rectangle";
                        else if(xshape  == 1)
                        {     flagshape = 2;
                             shapeChoice="Normal Circle";
                        else if(xshape  == 2)//**********here
                        {     flagshape = 3;
                             shapeChoice="Normal Oval";
                        else if(xshape  == 3)
                        {     flagshape = 4;
                             shapeChoice="BIG Rectangle";
                        else if(xshape  == 4)
                       {      flagshape = 5;
                             shapeChoice="BIG Circle";
                        else if(xshape  == 5)
                     {        flagshape = 6;
                             shapeChoice="BIG Oval";
                        else if(xshape  == 6)
                             flagshape = 7;
                             shapeChoice="small rectangle";
                        else if(xshape  == 7)
                     {        flagshape = 8;
                             shapeChoice="small circle";
                        else if(xshape  == 8)
                     {        flagshape = 9;
                             shapeChoice="small oval";
          /*  speedJComboBox = new JComboBox( speed );
               speedJComboBox.setBounds( 10, 150, 135, 21 );
               speedJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( speedJComboBox );
              speedJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                          int xspeed = speedJComboBox.getSelectedIndex();
                        if( xspeed  == 0)
                             flagspeed = 1;
                             else if(xspeed  == 1)
                             flagspeed = 2;
                             else
                             flagspeed = 3;
                        System.out.println(flagspeed);     
            //creates a newJLabel
            de2JLabel= new JLabel();
            de2JLabel.setBounds( 20, 380, 70, 35 );
            de2JLabel.setText("Details:");
            helpJPanel.add( de2JLabel);
            //creates a JButton
            startTestJButton = new JButton();
            startTestJButton.setBounds( 185, 205, 180, 60 );
            startTestJButton.setText( "START" );
            startTestJButton.setBackground( Color.YELLOW );
            helpJPanel.add( startTestJButton );
            startTestJButton.setEnabled(true);
    //        startTestJButton.setVisible(true);
            startTestJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        startTest();
            //sets up an animation panel
            testJPanel = new ShapeMovingPanel(this);
            testJPanel.setBounds( 16,16, 560, 375 );
            testJPanel.setBorder(new TitledBorder("Click the moving object:"));
            testJPanel.setLayout( null );
            testJPanel.setVisible(false);
            contentPane.add( testJPanel );
            testJPanel.addMouseMotionListener(this);
            //creates a newJLabel
            timeJLabel = new JLabel();
            timeJLabel.setBounds( 440, 330, 100, 35 );
            timeJLabel.setText("Time:");
            testJPanel.add( timeJLabel );
            //creates a new JTextField
            timerJTextField = new JTextField();
            timerJTextField.setBounds( 480, 335, 60, 24 );
            timerJTextField.setText(String.valueOf(timeLimit));
            timerJTextField.setHorizontalAlignment(JTextField.CENTER );
            timerJTextField.setEditable(false);
            timerJTextField.setBackground( Color.YELLOW );
            testJPanel.add( timerJTextField );
            resultsJPanel = new JPanel();
            resultsJPanel.setBounds( 16,16, 560, 375 );
            resultsJPanel.setBorder(new TitledBorder("HERE ARE YOUR RESULTS:"));
            resultsJPanel.setLayout( null );
            resultsJPanel.setVisible(false);
            contentPane.add( resultsJPanel );
            de3JLabel= new JLabel();
            de3JLabel.setBounds(20, 200, 530, 35 );
            de3JLabel.setText("Below is also the movements you made with your mouse, " +
                              "you may exit the program now.");
            resultsJPanel.add( de3JLabel);
            de4JLabel= new JLabel();
            de4JLabel.setBounds(135, 245, 530, 35 );
            de4JLabel.setText("Thank you for trying the Reaction Testing program");
            resultsJPanel.add( de4JLabel);
            //creates a newJLabel
            nameResultJLabel= new JLabel();
            nameResultJLabel.setBounds( 62, 55, 50, 35 );
            nameResultJLabel.setText("Name:");
            resultsJPanel.add( nameResultJLabel);
            //creates a new JTextField
            nameResultJTextField = new JTextField();
            nameResultJTextField.setBounds( 140, 55, 300, 24 );
            resultsJPanel.add( nameResultJTextField );
            nameResultJTextField.setEditable(false);
            //creates a newJLabel
            ageResultJLabel = new JLabel();
            ageResultJLabel.setBounds( 62, 90, 100, 35 );
            ageResultJLabel.setText("Age:");
            resultsJPanel.add( ageResultJLabel );
            //creates a new JTextField
            ageResultsJTextField = new JTextField();
            ageResultsJTextField.setBounds( 140, 90, 300, 24 );
            resultsJPanel.add( ageResultsJTextField );
            ageResultsJTextField.setEditable(false);
            //creates a newJLabel
            timeResultsJLabel = new JLabel();
            timeResultsJLabel.setBounds( 62, 125, 100, 35 );
            timeResultsJLabel.setText("Time taken:");
            resultsJPanel.add( timeResultsJLabel );
            //creates a new JTextField
            timeResultsJTextField = new JTextField();
            timeResultsJTextField.setBounds( 140, 125, 300, 24 );
            resultsJPanel.add( timeResultsJTextField );
            timeResultsJTextField.setEditable(false);
            //creates a newJLabel
            ratingJLabel = new JLabel();
            ratingJLabel.setBounds( 62, 160, 100, 35 );
            ratingJLabel.setText("Your Rating:");
            resultsJPanel.add( ratingJLabel );
            ratingJTextField = new JTextField();
            ratingJTextField.setBounds( 140, 160, 300, 24 );
            resultsJPanel.add( ratingJTextField );
            ratingJTextField.setEditable(false);
            //creates a JButton
            exitJButton = new JButton();
            exitJButton.setBounds( 235, 310, 90, 24 );
            exitJButton.setText( "Exit" );
            exitJButton.setBackground( Color.WHITE );
            resultsJPanel.add( exitJButton );
            exitJButton.setEnabled(true);
            exitJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when exitJButton is pressed
                    public void actionPerformed( ActionEvent event )
                        System.exit(0); //closes the programme
            }); // end anonymous inner class
            addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            // set properties of application's window
            setTitle( "Reaction Tester - CMT3991" ); // set JFrame's title bar string
            //setSize( 1280,995 );    // set width and height of JFrame
            setSize( 608, 650 );         // set width and height of JFrame
            setVisible( true );       // display JFrame on screen
        //** set up of method main */
        public static void main( String[] args )
            RT application = new RT();
            application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        } // end method main
         * action listener for TimeNow Timer
        private class TimerListener implements ActionListener
            public void actionPerformed(ActionEvent event)
                timeLimit ++;          
                if (timeLimit==100)
                     temp++;
                     timeLimit=0;
                timerJTextField.setText(String.valueOf(temp +""+timeDec.format(timeLimit)));
        private void Login()
            try
                name = nameJTextField.getText();
                age = Integer.parseInt(ageJTextField.getText());
                startJPanel.setVisible(false);
                showJPanel.setVisible(false);
                helpJPanel.setVisible(true);
                infoJTextArea.setText("\n    Welcome "+name+" you will soon know how " +
                                      "fast your reactions are.");
            catch (NumberFormatException exception)
                JOptionPane.showMessageDialog(this,
                        "There is either a blank field or a number hasn't been entered",
                        "Input Type error", JOptionPane.ERROR_MESSAGE);
                //shows this is something has been entered wrong
        private void startTest()
            helpJPanel.setVisible(false);
          //  System.out.println(""+ seed.nextInt(shapes.length));
            //shape = shapes[seed.nextInt(shapes.length)];//****************************
            if (flagshape==1)
                 shape = shapes[0];// changed colour here***************************
            else if (flagshape==2)
                 shape = shapes[1];// changed colour here***************************
            else if (flagshape==3)
                 shape = shapes[2];// changed colour here***************************
           else if (flagshape==4)
                 shape = shapes[3];// changed colour here***************************
             else if (flagshape==5)
                 shape = shapes[4];// changed colour here***************************
            else if (flagshape==6)
                 shape = shapes[5];// changed colour here***************************
            else if (flagshape==7)
                 shape = shapes[6];// changed colour here***************************
            else if (flagshape==8)
                 shape = shapes[7];// changed colour here***************************
            else if (flagshape==9)
                 shape = shapes[8];// changed colour here***************************
           // shape = shapes[8];
            System.out.println(shape.toString());
            testJPanel.setShape(shape);
            testJPanel.setVisible(true);
            testJPanel.start();
            infoJTextArea.setText("");
            TimeNow.start();
         * called by animation panel after shape is clicked
        public void stop()
            TimeNow.stop();
            movingObject();
         * this will compete with your animation
         * ie, it will slow it down or make it appear jerky
        public void mouseMoved(MouseEvent e)
            saySomething("\n    Mouse moved", e);
        public void mouseDragged(MouseEvent e)
            saySomething("\n    Mouse dragged", e);
        void saySomething(String eventDescription, MouseEvent e)
            infoJTextArea.append(eventDescription
                         + " (" + e.getX() + "," + e.getY() + ")");
            infoJTextArea.setCaretPosition(infoJTextArea.getDocument().getLength());
        private void movingObject()
            TimeNow.stop();
            //timeLimit;
            testJPanel.setVisible(false);
            resultsJPanel.setVisible(true);
            nameResultJTextField.setText(name);
            ageResultsJTextField.setText(String.valueOf(age)+" years old");
    System.out.println("shape used: "+shapeChoice);
            String mouse = infoJTextArea.getText();
            String tick = timerJTextField.getText();
            timeResultsJTextField.setText(tick);
            try
                // create a file called welch.txt
                final FileWriter outputFile = new FileWriter("Backup_of_"+name+"s_results.txt", true);
                final BufferedWriter outputBuffer = new BufferedWriter(outputFile);
                // converts data to a formatted string
                final PrintWriter printstream = new PrintWriter(outputBuffer);
                printstream.println("THIS IS A BACKUP");
                printstream.println("The person's name is: "+name);
                printstream.println("There age is: "+age);
                printstream.println("Time taken: "+tick+" seconds");
                printstream.println("The Shape and size was: "+shapeChoice);
                printstream.println("It's colour was: "+colourChoice);
                printstream.println("The mouse moved as follows: "+mouse);
                //states what needs to be printed to the new file
                printstream.close(); // closes teh printstream
            catch(IOException eio)
                //catchs the IO exception
            if(temp<5.00)
                ratingJTextField.setText("Thierry Henry");     
            else if(timeLimit<=10)
                ratingJTextField.setText("Average");     
            else if(timeLimit<=15)
                ratingJTextField.setText("You gotta be fat or something");     
            else if(timeLimit<=20)
                ratingJTextField.setText("See a doctor");
            else if(timeLimit>20)
                ratingJTextField.setText("DO YOU KNOW WHAT YOU DOING!?");
            String rate=ratingJTextField.getText();
            try
                   Statement st = dbcon.createStatement();
                   String cmd = "INSERT INTO users (Name, Age, Time_Taken, Rating, Mouse_Movement,Shape_and_Size, Shape_Colour) VALUES ('" + name + "' , " + age + " , '" + tick + "' , '" + rate+"','"+ mouse+"','"+ shapeChoice+"','"+ colourChoice+"');";
                //creates a SQL statement and executes it
                st.executeUpdate(cmd);
                   st.close();//close the statement
              } catch (Exception eDA)
                   eDA.printStackTrace();
        private void showData()
            // pretend this takes awhile -> 3 seconds (count)
            new Thread(new Runnable()
                public void run()
                    String results = "";
                    int count = 0;
                    boolean journeyOn = true;
                    while(journeyOn && count < 3)
                        try
                            Thread.sleep(1000);
                        catch(InterruptedException ie)
                            System.err.println("show interrupt: " + ie.getMessage());
                            journeyOn = false;
                        results += count++ + ", ";
                    infoJTextArea.setText("Here are your results:\n"+results);
                    startJPanel.setVisible(false);
                    showJPanel.setVisible(true);
            }).start();
    class ShapeMovingPanel extends JPanel implements ActionListener
        RT host;
        Timer timer;
        Shape shape, xformed;
        int x, y, dx, dy;
        public ShapeMovingPanel(RT rt)
            timer = new Timer(-20, this);     
            host = rt;
        /*    if (rt.flagspeed==1)
            timer = new Timer(-20, this);
            else if (rt.flagspeed==2)
                timer = new Timer(20, this);
            else if (rt.flagspeed==3)
            timer = new Timer(100, this);
            //change speed here******************************
            x = 0;//0
            y = 0;//0
            dx =2;//2
            dy = 3;//3
            //setBackground(Color.pink);
            addMouseListener(new ShapeTender());
        public void actionPerformed(ActionEvent e)
            int w = getWidth();
            int h = getHeight();
            if(w <= 0 || h <= 0)
                return;
            checkBoundries(w,h);
            x += dx;
            y += dy;
            repaint();
        private void checkBoundries(int w, int h)
            Rectangle r = xformed.getBounds();
            Insets insets = getInsets();
            if(r.x + dx < insets.left || r.x + r.width + dx > w - insets.right)
                dx *= -1;
            if(r.y + dy < insets.top || r.y + r.height + dy > h - insets.bottom)
                dy *= -1;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            AffineTransform at = AffineTransform.getTranslateInstance(x, y);
            if (RT.flag==1)
            {g2.setPaint(Color.red);// changed colour here***************************
            else if (RT.flag==2)
            {g2.setPaint(Color.blue);// changed colour here***************************
            else if (RT.flag==3)
            {g2.setPaint(Color.green);// changed colour here***************************
            else if (RT.flag==4)
            {g2.setPaint(Color.yellow);// changed colour here***************************
            else if (RT.flag==5)
            {g2.setPaint(Color.orange);// changed colour here***************************
            else if (RT.flag==6)
            {g2.setPaint(Color.black);// changed colour here***************************
            xfo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

    I'm (being lazy and) using the older RT app posted on your last thread. I removed the
    TimeNow timer from the RT class and used System.currentTimeMillis (as you requested) to
    determine the elapsed time during the animation (see "startTest", "stop" and
    "movingObject" methods). Also changed the DecimalFormat to NumberFormat and set the
    "maximumFractionDigits" to "2" so it will truncate the fraction to two digits (more simple
    than before). Made arrangements for the ShapeMovingPanel class to update the
    "timerJTextField" during the animation (RT.updateTime method).
    The MouseMotionListener is causing the animation to appear jerky and uneven. The
    "mouseMoved" method is very busy while the mouse is moving. You might consider recording
    the "mousePressed" events instead of the "mouseMoved" events, ie, the events where the user
    is attempting to click inside the moving shape. It would allow the app to be more
    responsive and might eliminate the uneven motion of the animating shape.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.Timer;
    public class RT extends JFrame implements MouseMotionListener
        //declares a number of swing componets to be used for the JFrame
        private JTextArea infoJTextArea;
        private JPanel showJPanel, startJPanel, helpJPanel, resultsJPanel;
        private JLabel de4JLabel, de3JLabel, mainTitleJLabel, nameJLabel, ageJLabel,
                       deJLabel, de1JLabel, de2JLabel, timeJLabel,nameResultJLabel,
                       ageResultJLabel, timeResultsJLabel, ratingJLabel;
        private JTextField nameJTextField, ageJTextField,nameResultJTextField,
                       ageResultsJTextField, timeResultsJTextField, ratingJTextField;
        private JButton exitJButton, showJButton, loginJButton, startTestJButton,
                        tempObjectJButton;
        private JScrollPane scroll;;
        // creates and sets up a number of varibles to be used by the class
        private long startTime;
        private long endTime;
        public int timeLimit = 0;
        public int age;
        public String name;
        private JTextField timerJTextField;
        ShapeMovingPanel testJPanel;
        NumberFormat timeDec;
        Random seed;
        Shape shape;
        Shape[] shapes = {
            new Rectangle2D.Double(50, 30, 75, 25),
            new Ellipse2D.Double(175, 125, 50, 50),
            new Ellipse2D.Double(90, 100, 75, 35)
        public RT()
            timeDec = NumberFormat.getInstance();
            timeDec.setMaximumFractionDigits(2);
            seed = new Random();
            shape = shapes[0];
            createUserInterface();
        private void createUserInterface()
            Container contentPane = getContentPane();
            contentPane.setLayout( null );
            // set up infoJTextField
            infoJTextArea = new JTextArea();
            infoJTextArea.setBounds( 20, 420, 550, 170  );
            infoJTextArea.setEditable( false);
            infoJTextArea.setText("\n    Welcome to the reaction testing program, this " +
                            "program is designed to test your reactions in a  \n"+
                            "    number of different situations.\n"+"\n    Please " +
                            "enter your name and age, or select show previous results.");
            contentPane.add( infoJTextArea );
            scroll = new JScrollPane(infoJTextArea);
            scroll.setBounds(  20, 420, 550, 170 );
            contentPane.add( scroll );
              startJPanel = new JPanel();
            startJPanel.setBounds( 16,16, 560, 375 );
            startJPanel.setBorder(
                    new TitledBorder( "WELCOME -PLEASE ENTER YOUR NAME AND AGE:" ) );
            startJPanel.setLayout( null );
            contentPane.add( startJPanel );
            //sets up a JPanel
            mainTitleJLabel = new JLabel();
            mainTitleJLabel.setIcon( new ImageIcon( "title.png" ) );
            mainTitleJLabel.setBounds( 30, 10, 520, 170 );
            mainTitleJLabel.setHorizontalAlignment( JLabel.CENTER );
            startJPanel.add( mainTitleJLabel );
            //creates a newJLabel
            nameJLabel= new JLabel();
            nameJLabel.setBounds( 52, 200, 70, 35 );
            nameJLabel.setText("Name:");
            startJPanel.add( nameJLabel);
            //creates a new JTextField
            nameJTextField = new JTextField();
            nameJTextField.setBounds( 130, 200, 300, 24 );
            startJPanel.add( nameJTextField );
            //creates a newJLabel
            ageJLabel = new JLabel();
            ageJLabel.setBounds( 52, 245, 100, 35 );
            ageJLabel.setText("Age:");
            startJPanel.add( ageJLabel );
            //creates a new JTextField
            ageJTextField = new JTextField();
            ageJTextField.setBounds( 130, 245, 300, 24 );
            startJPanel.add( ageJTextField );
            //creates a JButton
            loginJButton = new JButton();
            loginJButton.setBounds( 440, 200, 90, 24 );
            loginJButton.setText( "Login" );
            loginJButton.setBackground( Color.YELLOW );
            startJPanel.add( loginJButton );
            loginJButton.setEnabled(true);
            loginJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        // not necessary to pass events to these methods...
                        Login();  // calls the Login method                       
            //creates a JButton
            showJButton = new JButton();
            showJButton.setBounds( 200, 320, 180, 24 );
            showJButton.setText( "Show previous results" );
            showJButton.setBackground( Color.YELLOW );
            startJPanel.add( showJButton );
            showJButton.setEnabled(true);
            showJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        showData();   // calls the showData method                       
            //sets up a JPanel
            showJPanel = new JPanel();
            showJPanel.setBounds( 16,16, 560, 375 );
            showJPanel.setBorder(new TitledBorder( "PREVIOUS RESULTS:" ) );
            showJPanel.setLayout( null );
            contentPane.add( showJPanel );
            //sets up a JPanel
            helpJPanel = new JPanel();
            helpJPanel.setBounds( 16,16, 560, 375 );
            helpJPanel.setBorder(
            new TitledBorder( "HELP DETAILS:" ) );
            helpJPanel.setLayout( null );
            helpJPanel.setVisible(false);
            contentPane.add( helpJPanel );
            //creates a newJLabel
            deJLabel= new JLabel();
            deJLabel.setBounds( 23, 390, 530, 35 );
            deJLabel.setText("Details:");
            contentPane.add( deJLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds( 25, 100, 530, 35 );
            de1JLabel.setText("You are about to start the reaction test, when you " +
                              "press the start button it will begin.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds(160, 145, 530, 35 );
            de1JLabel.setText("Simply catch the moving item and click.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de2JLabel= new JLabel();
            de2JLabel.setBounds( 20, 380, 70, 35 );
            de2JLabel.setText("Details:");
            helpJPanel.add( de2JLabel);
            //creates a JButton
            startTestJButton = new JButton();
            startTestJButton.setBounds( 185, 205, 180, 60 );
            startTestJButton.setText( "START" );
            startTestJButton.setBackground( Color.YELLOW );
            helpJPanel.add( startTestJButton );
            startTestJButton.setEnabled(true);
            startTestJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        startTest();
            //sets up an animation panel
            testJPanel = new ShapeMovingPanel(this);
            testJPanel.setBounds( 16,16, 560, 375 );
            testJPanel.setBorder(new TitledBorder("Click the moving object:"));
            testJPanel.setLayout( null );
            testJPanel.setVisible(false);
            contentPane.add( testJPanel );
    // this is causing the animation to appear uneven
    // you can try the app with and without this to see
    //        testJPanel.addMouseMotionListener(this);
            //creates a newJLabel
            timeJLabel = new JLabel();
            timeJLabel.setBounds( 440, 330, 100, 35 );
            timeJLabel.setText("Time:");
            testJPanel.add( timeJLabel );
            //creates a new JTextField
            timerJTextField = new JTextField();
            timerJTextField.setBounds( 480, 335, 60, 24 );
            timerJTextField.setText(String.valueOf(timeLimit));
            timerJTextField.setHorizontalAlignment(JTextField.CENTER );
            timerJTextField.setEditable(false);
            timerJTextField.setBackground( Color.YELLOW );
            testJPanel.add( timerJTextField );
            resultsJPanel = new JPanel();
            resultsJPanel.setBounds( 16,16, 560, 375 );
            resultsJPanel.setBorder(new TitledBorder("HERE ARE YOUR RESULTS:"));
            resultsJPanel.setLayout( null );
            resultsJPanel.setVisible(false);
            contentPane.add( resultsJPanel );
            de3JLabel= new JLabel();
            de3JLabel.setBounds(20, 200, 530, 35 );
            de3JLabel.setText("Below is also the movements you made with your mouse, " +
                              "you may exit the program now.");
            resultsJPanel.add( de3JLabel);
            de4JLabel= new JLabel();
            de4JLabel.setBounds(135, 245, 530, 35 );
            de4JLabel.setText("Thank you for trying the Reaction Testing program");
            resultsJPanel.add( de4JLabel);
            //creates a newJLabel
            nameResultJLabel= new JLabel();
            nameResultJLabel.setBounds( 62, 55, 50, 35 );
            nameResultJLabel.setText("Name:");
            resultsJPanel.add( nameResultJLabel);
            //creates a new JTextField
            nameResultJTextField = new JTextField();
            nameResultJTextField.setBounds( 140, 55, 300, 24 );
            resultsJPanel.add( nameResultJTextField );
            nameResultJTextField.setEditable(false);
            //creates a newJLabel
            ageResultJLabel = new JLabel();
            ageResultJLabel.setBounds( 62, 90, 100, 35 );
            ageResultJLabel.setText("Age:");
            resultsJPanel.add( ageResultJLabel );
            //creates a new JTextField
            ageResultsJTextField = new JTextField();
            ageResultsJTextField.setBounds( 140, 90, 300, 24 );
            resultsJPanel.add( ageResultsJTextField );
            ageResultsJTextField.setEditable(false);
            //creates a newJLabel
            timeResultsJLabel = new JLabel();
            timeResultsJLabel.setBounds( 62, 125, 100, 35 );
            timeResultsJLabel.setText("Time taken:");
            resultsJPanel.add( timeResultsJLabel );
            //creates a new JTextField
            timeResultsJTextField = new JTextField();
            timeResultsJTextField.setBounds( 140, 125, 300, 24 );
            resultsJPanel.add( timeResultsJTextField );
            timeResultsJTextField.setEditable(false);
            //creates a newJLabel
            ratingJLabel = new JLabel();
            ratingJLabel.setBounds( 62, 160, 100, 35 );
            ratingJLabel.setText("Your Rating:");
            resultsJPanel.add( ratingJLabel );
            ratingJTextField = new JTextField();
            ratingJTextField.setBounds( 140, 160, 300, 24 );
            resultsJPanel.add( ratingJTextField );
            ratingJTextField.setEditable(false);
            //creates a JButton
            exitJButton = new JButton();
            exitJButton.setBounds( 235, 310, 90, 24 );
            exitJButton.setText( "Exit" );
            exitJButton.setBackground( Color.WHITE );
            resultsJPanel.add( exitJButton );
            exitJButton.setEnabled(true);
            exitJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when exitJButton is pressed
                    public void actionPerformed( ActionEvent event )
                        System.exit(0); //closes the programme
            }); // end anonymous inner class
            addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            // set properties of application's window
            setTitle( "Reaction Tester - CMT3991" ); // set JFrame's title bar string
            //setSize( 1280,995 );    // set width and height of JFrame
            setSize( 608, 650 );         // set width and height of JFrame
            setVisible( true );       // display JFrame on screen
        //** set up of method main */
        public static void main( String[] args )
            RT application = new RT();
            application.setDefaultCloseOperation( EXIT_ON_CLOSE );
        } // end method main
        private void Login()
            try
                name = nameJTextField.getText();
                age = Integer.parseInt(ageJTextField.getText());
                startJPanel.setVisible(false);
                showJPanel.setVisible(false);
                helpJPanel.setVisible(true);
                infoJTextArea.setText("\n    Welcome "+name+" you will soon know how " +
                                      "fast your reactions are");
            catch (NumberFormatException exception)
                JOptionPane.showMessageDialog(this,
                        "There is either a blank field or a number hasn't been entered",
                        "Input Type error", JOptionPane.ERROR_MESSAGE);
                //shows this is something has been entered wrong
        private void startTest()
            helpJPanel.setVisible(false);
            shape = shapes[seed.nextInt(shapes.length)];
            testJPanel.setShape(shape);
            testJPanel.setVisible(true);
            testJPanel.start();
            startTime = System.currentTimeMillis();
            infoJTextArea.setText("");
         * called by animation panel after shape is clicked
        public void stop()
            endTime = System.currentTimeMillis();
            movingObject();
         * called by timer actionPerformed in ShapeMovingPanel
        public void updateTime()
            long timeNow = System.currentTimeMillis();
            double elapsed = (timeNow - startTime)/1000.0;
            timerJTextField.setText(timeDec.format(elapsed));
         * this will compete with your animation
         * ie, it will slow it down or make it appear jerky
        public void mouseMoved(MouseEvent e)
            saySomething("\n    Mouse moved", e);
        public void mouseDragged(MouseEvent e)
            saySomething("\n    Mouse dragged", e);
        void saySomething(String eventDescription, MouseEvent e)
            infoJTextArea.append(eventDescription
                         + " (" + e.getX() + "," + e.getY() + ")");
            infoJTextArea.setCaretPosition(infoJTextArea.getDocument().getLength());
        private void movingObject()
            testJPanel.setVisible(false);
            resultsJPanel.setVisible(true);
            nameResultJTextField.setText(name);
            ageResultsJTextField.setText(String.valueOf(age)+" years old");
            double elapsedTime = (endTime - startTime)/1000.0;
            timeLimit = (int)elapsedTime;
            timeResultsJTextField.setText(timeDec.format(elapsedTime)+" seconds");
            String mouse = infoJTextArea.getText();
            String tick = timeDec.format(elapsedTime);
            try
                // create a file called welch.txt
                final FileWriter outputFile = new FileWriter(name+".txt", true);
                final BufferedWriter outputBuffer = new BufferedWriter(outputFile);
                // converts data to a formatted string
                final PrintWriter printstream = new PrintWriter(outputBuffer);
                printstream.println("The person's name is: "+name);
                printstream.println("There age is: "+age);
                printstream.println("Time taken: "+tick+" seconds");
                printstream.println("The mouse moved as follows: "+mouse);
                //states what needs to be printed to the new file
                printstream.close(); // closes teh printstream
            catch(IOException eio)
                //catchs the IO exception
            if(timeLimit<5)
                ratingJTextField.setText("Thierry Henry");     
            if(timeLimit>5)
                ratingJTextField.setText("Average");     
            if(timeLimit>10)
                ratingJTextField.setText("You gotta be fat or something");     
            if(timeLimit>20)
                ratingJTextField.setText("See a doctor");
            String rate=ratingJTextField.getText();
        private void showData()
    //        String results = "";
    //        infoJTextArea.setText("Here are your results:\n"+results);
            startJPanel.setVisible(false);
            showJPanel.setVisible(true);
    class ShapeMovingPanel extends JPanel implements ActionListener
        RT host;
        Timer timer;
        Shape shape, xformed;
        int x, y, dx, dy;
        public ShapeMovingPanel(RT rt)
            host = rt;
            timer = new Timer(25, this);
            x = 0;
            y = 0;
            dx = 2;
            dy = 3;
            setBackground(Color.pink);
            addMouseListener(new ShapeTender());
        public void actionPerformed(ActionEvent e)
            int w = getWidth();
            int h = getHeight();
            if(w <= 0 || h <= 0)
                return;
            checkBoundries(w,h);
            x += dx;
            y += dy;
            repaint();
            // update RT.timerJTextField
            host.updateTime();
        private void checkBoundries(int w, int h)
            Rectangle r = xformed.getBounds();
            Insets insets = getInsets();
            if(r.x + dx < insets.left || r.x + r.width + dx > w - insets.right)
                dx *= -1;
            if(r.y + dy < insets.top || r.y + r.height + dy > h - insets.bottom)
                dy *= -1;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            AffineTransform at = AffineTransform.getTranslateInstance(x, y);
            g2.setPaint(Color.red);
            xformed = at.createTransformedShape(shape);
            g2.draw(xformed);
        public void start()
            if(!timer.isRunning())
                timer.start();
        public void setShape(Shape s)
            shape = s;
            Rectangle r = shape.getBounds();
            x = r.x;
            y = r.y;
            repaint();
        private class ShapeTender extends MouseAdapter
            public void mousePressed(MouseEvent e)
                if(xformed.contains(e.getPoint()))
                    timer.stop();
                    host.stop();
    }

Maybe you are looking for

  • ERROR IN IMPORT PHASE ( CREATE NODE GROUPS) CAN ANY TELL ME SOLUTION

    HI SAP EXPERTS, Iam doing Export & Import for Converting my SAP system which was previously a "NON-UNICODE" system and iam about to convert it to "UNICODE" system. i have followed the steps specified in the guide for converting a non-unicode system t

  • Add tab in Portal to access SAP BW system

    Hello All, Currently, we have SAP ECC tab available in the Portal to access the ECC system directly with a single sign on. Similarly, we want to add a tab to access SAP BW system wherein user can login to BW system to execute a process chain.. Please

  • How to get body of a mail

    hello friends, i want to know how to get Body of mail thank u bye somu

  • Can't read site files

    I just got a new computer and installed DWMX2004. My old site files are also on the new computer. I used the Site Wizard to create a new site, leading to the folder that contains the files. However, while I can see the folder defined as a site, I can

  • I can't merge my mobileME account with iCloud.

    I am having problems, and seem to keep going in circles when trying to merge my mobile Me account to iCloud.  I have an iphone that I want to be able to synch my photostream with.  It just won't seem to allow me to see those pics.  I can't figure it