Results 1 to 4 of 4

Thread: Show Cursor

  1. #1
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default Show Cursor

    How come that when I do
    Java Code:
    BufferedImage screencapture = new Robot().createScreenCapture(
                            new Rectangle(new Dimension(500, 500)));
    It doesn't show the mouse's cursor?
    Last edited by PhQ; 09-01-2010 at 05:12 PM.

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    5

    Default

    If you were designing it for general use, doesn't seem more useful not to include the mouse cursor?

    You can always figure out the mouse position and draw your own mouse icon into the buffered image.
    My Hobby Project: LegacyClone

  3. #3
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by mrmatt1111 View Post
    If you were designing it for general use, doesn't seem more useful not to include the mouse cursor?

    You can always figure out the mouse position and draw your own mouse icon into the buffered image.
    I am making a screen recording program,
    and when it takes a screenshot, the picture is without a cursor.

  4. #4
    Maxideon is offline Member
    Join Date
    Jun 2010
    Posts
    28
    Rep Power
    0

    Default

    You can get the mouse's current position with the MouseInfo class, and then paint a picture of the mouse on the screen shot.

Similar Threads

  1. Replies: 3
    Last Post: 05-27-2010, 10:54 AM
  2. Show Text with cursor
    By ravjot28 in forum AWT / Swing
    Replies: 3
    Last Post: 01-20-2010, 09:30 PM
  3. change the mouse cursor - crosshair cursor
    By cassysumandak in forum New To Java
    Replies: 1
    Last Post: 09-28-2009, 01:57 AM
  4. Cursor
    By serfster in forum New To Java
    Replies: 2
    Last Post: 06-15-2008, 05:49 AM
  5. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •