Taking Screen Shot of Certain Area

Just found this post and have it working on my program..
http://forum.java.sun.com/thread.jspa?forumID=5&threadID=140954
the problem is, that the coordinates relate to the actually OS screen, i am trying to take a screen grab of certain cordinates that relate to my Java app screen.
for example if i want the cordinates:
Rectangle area = new Rectangle(20, 20, 300, 400);i want the Rectangle to start 20 in and 20 down from the top left corner of my Java App window.
Thanks, if anyone can help.
Iain

Can you just map the coordinates from your app to the screen coordinates? I think you can just use the getLocationOnScreen method of Component (and JFrame) to get the top left corner of your app and then just add the values to your Rectangle.

Similar Messages

  • My ipod touch 2nd generation keeps taking screen shots by itself and turning off. This is a 'NEW' replacement and is less than 12 months old. Any ideas?

    my ipod touch 2nd generation keeps taking screen shots by itself and turning off. This is a 'NEW' replacement and is less than 12 months old. Any ideas?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • IPod touch keeps taking screen shots

    Is there a way to shut off the screen shot feature? My touch is continually taking screen shots - this happens when I'm touching it and when it's sitting in a stationary position. I have removed the cover to eliminate the chance that the power button and menu button are being pushed at the same time. Wondering if I have a faulty touch? Touch also has trouble starting up - have to press the power button at least three times before screen turns on.
    Any help would be appreciated.

    Sadly, I was suspecting the actual *application procedure* may have created the problem and not the film itself. Perhaps some of the application fluid got into the crack near the Home button and gummed it up. I don't know what you could do to fix that either.

  • I've been taking screen shots for years and opening them from my desktiop. Suddenly, today, I've lost the ability to open them. I can right click on the picture and do "quicklook", but that's it. They just won't open.   Similary, if I scan an image and sa

    I've been taking screen shots for years and opening them from my desktiop. Suddenly, today, I've lost the ability to open them. I can right click on the picture and do "quicklook", but that's it. They just won't open.
    Similary, if I scan an image and save it as a PDF file in pictures, I'm suddenly not able to open it either!
    Why?

    Move the com.apple.screencapture.plist file out of /username/Library/Preferences/ to the Desktop, log out and back in, and try again.
    BTW, use the default 10 point setting for text. Your choice just wastes screen space.

  • Restricting user from taking printout, copying and taking screen shots

    Hi,
        In KM,   is it possible to restrict the user with read permission from taking printout, from copying the document, from taking screen shots for a document.
        If possible , how to achieve it.
        All helps will be appriciated.
    Regards,
    Shanthakumar.

    Hi,
    Once the user has read permission and able to view the document, there is no possibility to stop this user from taking printout, copying and making screen shots.
    Check this similar thread:
    https://forums.sdn.sap.com/thread.jspa?threadID=826025
    Regards,
    Praveen Gudapati

  • How do I print a long chat session, without taking screen shots?

    I need to print a chat thread going back about 4 months. I'd like to avoid the tedious process of scrolling to the beginning and taking screen shots. Is there a way to send the entire thread to a printer or request a transcript from Verizon?

    This should help! Its a program that will allow your computer to extract your itunes backup message files, and put them out as printable documents.
    http://www.softwarert.com/print-iphone-text-messages/

  • HT204266 Is the iPod touch capable of taking screen shots? If so, how is it done?

    Is the iPod Touch capable of taking screen shots? If so, how?

    iPod touch User Guide (For iOS 5.1 Software)

  • Iphone 5 taking screen shots by only pressing on/off button

    I know it's supposed to take screen shots if you hold down the home button and the on/off button together, but my phone is taking a screen shot every time I turn it off (i.e., without pressing the home button).  Anyone seen this issue?

    Maybe the home button is stick.  Try
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • Grab doesn't take screen shot of selected area.

    Using Lion, Grab (screen shot) doesn't work like it used to. I select an area, Cmd-Shift-4, release mouse button. It "grabs" a shot of a different area.

    Can you just map the coordinates from your app to the screen coordinates? I think you can just use the getLocationOnScreen method of Component (and JFrame) to get the top left corner of your app and then just add the values to your Rectangle.

  • Not Taking screen shots

    Hi, i have a mac mini, and a third party keyboard. whenever i try to take a screenshot, nothing happens. the keyboard is connected to a hub. does anyone know what to do? i have tried to connect it directly to the mac, but it doesn't help.

    If you open the "Keyboard Shortcuts" tab of the Keyboard & Mouse System Preferences, you can change the shortcut for taking a screen shot to whatever you like. If Windows-shift-3 wasn't working before, maybe you can just change it TO Windows-shift-3?
    -Doug

  • Taking Screen Shot and it is flipping the images????

    Hello, I have a new iMac G5 with iSight and its acting really strange when taking a screen shot.
    I press command + shift + 4 and take a screen shot of part of the screen and it creates a folder called 'flipped images' on the desktop and saves the images flipped horizontally???
    ( I'm using OS 10.4.3)
    anyone had this before? or know how to change it back?
    Thanks
    Dave

    i cant find the answer to this anywhere, any suggestions???

  • OTM not taking screen shots specified in openscript steps

    When i record a script for EBS in OpenScript, at the beginning of each step, a screen shot is taken and can be seen in the results in OpenScript. But when the same script is scheduled in OTM, it does not capture the screenshots. Those are not even seen in the folder where OTM saves the script results. C:\OracleATS\otm\Temp\1358971798821
    is there some setting i am missing?
    Thanks

    Does it pop up in the middle of the screen, or the upper right corner?
    If it's in the upper right corner, it is most likely notifications (email, messages and various other apps will send you notifications when you receive emails, messages, or other items).  They pop up for 5 seconds by default, and if you are watching a movie in full screen, they might bleed through, but quickly disappear as the movie refreshes the screen.  You can show your list of notifications by clicking on the far right icon (looks like a text list) on the tool bar at the top (or by doing a 3-finger swipe from right to left on the touchpad).
    Notifications are the only pop up boxes I'm getting, but then again, I don't have a lot of 3rd party software installed.

  • My ipad wont start up - it looks like its is taking screen shots - the screen randomly flashes

    my ipad just stopped working - the screen went black and i cant start it - I've tried to restore factory settings - but it still wont open. The screen randomly flashes - like its taking a screen shot - very bizzarre.
    Please help - im really upset.

    Hello emmbee74,
    Thanks for using Apple Support Communities.
    If you reset your iPad to factory settings successfully and you're still having issues, then please look into getting your iPad serviced.
    Repair & Service
    http://www.apple.com/support/ipad/repair/
    Take care,
    Alex H.

  • I keep taking screen shots but they dont show up on my desktop and i dont know how to find them

    helppp
    i keep talking screen shots but they dont show up on my desktop and i dont know how to find them!

    I have the same problem. One of the reliable things about Apple OSX, that we could count on screenshots being simple. Then DropBox came along. I suspect DropBox is the culprit here. I don't mind, even am grateful if DB captures my captures, but who gave them permission to totally changes my whole universe!!?

  • Taking Screen Shots Make Speakers Turn Off. . .

    *Sorry - didn't mean to post this in Power and Batteries! Can't see how to move it - will post again elsewhere - please feel free to Tut loudly at me!*
    I take a lot of screen shots at the minute using Apple / Shift and 4. Recently I have noticed that 2/5 times I take the screen shot - the speakers give a crackle and stop. iTunes continues to play but with no sound.
    I am on the internet with perhaps Photoshop and Adium also open (and obviously iTunes too).
    Has anyone else noticed this? Is it a weeeee glitch or something to be worried about? Is it the speakers packing in?
    Would appreciate any opinions on this one.
    Squidge.
    Powerbook 17inch   Mac OS X (10.4.5)  

    If you're within the warranty period AND the problem is not caused by user damage, it is covered under warranty.  If you're outside the warranty period OR the problem is due to user damage, you will pay $199.

Maybe you are looking for

  • Mail unexpectedly quits when viewing a message

    Hi, I have 5 e-mail accounts set up - 3 gmail using pop forwarding and 2 other pop accounts. When I load Mail, it can fetch mail from all accounts without a problem. However, double clicking to view any message, from any of the accounts, will crash M

  • "Inspire 5200 5.1 HELP!!! no sound!

    "Inspire 5200 5.1 HELP!!! no sound! Hey guys, i just recently got an inspire 5200 5.1 system and hooked it up. All connections are great and are connected properly to the sound card (all colors to all colors). The problem i have is that i hear absolu

  • Dreamweaver CS5 fails to open XP-Resolution Here!

    Hi, We had an issue with Dreamweaver CS5 opening under a standard user on XP Pro SP3. The resolution.... Open msconfig and disable everything to do with Adobe. Simple! Don't mess with config files, re-install; it doesn't work! Stopping Adobe things f

  • How do you delete your verizon wireless community profile?

    How do you delete a profile on this thing?

  • Selcetion with MB51 and Customer number

    When we select in transaction MB51 with movement type 601, customer number and posting date we got only all shipments without customer special stock (E) in the document list. But we want to see all shipments from unrestricted stock and from customer