Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Getting a screenshot with Java

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Getting a screenshot with Java

    Hi all, I am developing a program that will need to take screenshots of an external windows application; I have been able to do this in Python but am having trouble with the Java language. All that I've been able to find so far is to use the Robot class to take a full screenshot of the desktop and go from there. The problem is that this window may not be in full view from the desktop, and there may be more than one window I need to take screenshots from. Is there anyway in Java to get a screenshot of a window that may be minimized or partially obscured? Any and all help appreciated


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Getting a screenshot with Java

    I know only of the Robot class's screen capture method.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Screenshot wont draw to picture?
    By !Marcus in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 4th, 2012, 04:04 PM
  2. My Clear Info button is not working with Screenshot
    By drkossa in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 15th, 2010, 08:06 AM