How to Zoom an Image whereever the mouse moves?

Hi,
I have to zoom the image where ever the mouse cursor moves.
If i am moving the mouse at the position (x,y) then that part of the image has to be zoomed.
So that the pixels are clearly visible to user.
Can any one suggest me what i have to do exactly.
Thanks & Regards

As always with such questions: have a look at the tutorial
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
-Puce

Similar Messages

  • Zoom an Image whereever the mouse cursor is placed

    Hi,
    I have to zoom the image where ever the mouse cursor moves.
    If i am moving the mouse at the position (x,y) then that part of the image has to be zoomed,
    so that the image pixels will be visible properly to the user.
    The image is set to label.
    I know that the code has to be written in MouseMotionListener.
    I will get the position of (x,y) when the mouse is moved on the image.
    But how to ZoomIn the image where ever the mouse cursor is?
    Can any one suggest me what i have to do exactly.
    Thanks & Regards

    Hi,
    I saw that code some time before.
    The code is using java5, but i am using java 1.4

  • Moving Images with the mouse

    Sorry I am still fairly new to Java. I have a project due that will require me to move images with the mouse. And I was wondering if someone could give me the basics of doing this. Right now I only need to know how to move the image any where on the screen.

    sweety_baby wrote:
    It's not so usefull nebody plzz help me i wanna code for movinag an image from one place to another in frame
    plzzzzzzzz help me out its urgentIf it's so d�mn urgent, then why
    1) dredge up a thread that's more than 2 years old, and
    2) provide us with hardly any information about your problem, what you've done, what's worked, what's failed.
    Result: request denied.

  • All of a sudden the functions of my magic muse do not fonction (scroll, secondaire click, smart zoom etc.). The mouse is rightly connected to my PC under Yosemite. Thanks for the support.

    All of a sudden the functions of my magic mouse do not fonction (scroll, secondairy click, smart zoom etc.). The mouse is rightly connected to my PC under Yosemite. Thanks for the support.

    Hi,
    Sorry I can't help you. I just wanted to let you know I have the same exact problem. It started three days ago and I've been going back and forth with creative support and nothing has worked. I am beginning to grow really distressed. I feel a little better now because after seeing that it's happening with someone else, it is most likely not the player. I am running windows 98 SE as well. I also have an AMD Duron processor. I have a new computer on the way with windows XP I really hope it works. But now I have a new problem. I listed it on the front page of this forum a few minutes ago. My player froze and now only boots up in rescue mode. I am getting so frustrated with my player. If you figure anything out will you be as kind as to send me a message on how you got your player working again? I would really appreciate it. Thanks.
    Nick
    Message Edited by nichols088 on <SPAN class=date_text>06-09-2005 <SPAN class=time_text>05:33 PM
    Message Edited by nichols088 on 06-09-2005 05:35 PM

  • How to have multiple images on the same screen? like in the movies where you see several actions at

    how to have multiple images on the same screen? like in the movies where you see several actions at the same time ....
    i don't find  a tutorial in adobe tv....
    thanks !!

    The short answer is that you'll put the source clip(s) for each inset on a different video track, all stacked up. Then use the Scale and Position effects (under "Motion" on the Effect Controls panel) to reduce their size and place them where you want.
    If the content of an inset will involve edited content (where you're cutting among various clips or just trimming out unwanted content from a single clip), then you'll probably find it easier to do all those edits in one sequence, then nest that sequence in the master sequence, where you apply the Scale and Positioning effects. That will save the step of applying the scale and position effects to each edited track item.

  • In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

    In iPhoto, how can I export images with the metadata — including the title and caption information — intact as part of the image?

    Check those boxes in the export dialogue - Exporting From iPhoto
    LN

  • How do i copy images from the web?

    How do I copy images on the web for use in a powerpoint presentation?

    Drag them to the desktop or control-click them and choose to copy them to the clipboard.
    (61484)

  • How do I right click using the mouse on the mac desktop ?

    how do i right click using the mouse on the mac desktop

    does this involve iPhoto for the Mac in any way?
    the simple answer given no actual information is to press down on the right mouse button
    LN

  • How to apply an image to the back face of another?

    I am only fairly new to motion but am, learning fast. I'm wondering if someone can tell me how to apply an image to the back face of another image?
    I'm trying to animate a brochure opening and want to apply the front cover as the back face to the page I'm opening to (each page is a separate .pdf file). I know this can be done easily rather than animating them as 2 separate objects, i just can't remember how to do it.

    Thanks Mark. That is how I will do it if there isn't a simpler way. I could have sworn i have seen the option to allocate an image as the back face to another image. So when it animates, you automatically see the other image on the reverse side?

  • Capture a part of an image with the mouse ?

    Hi,
    I am really stuck with it ! I would like to capture a part of an image with the mouse. The selection can be a rectangle or an ellipse. For a rectangle a could use PixelGrabber but for an ellipse ?
    Thanks a lot !

    thanks a lot !

  • How to bring a image to the back adobe photoshop cc

    how to bring a image to the back adobe photoshop cc

    If the image is on its own layer you can drag the image layer to the bottom of the stack.

  • My laptop had water spilled on it 3 days ago, I let it sit as instructed by best buy . I am on it right now but the mouse movement isn't smooth anymore and it is slower. The first time I turned it on it didn't respond at all, how bad is the damage.?

    My laptop had water spilled on it 3 days ago, I let it sit as instructed by best buy . I am on it right now but the mouse movement isn't smooth anymore and it is slower. The first time I turned it on it didn't respond at all,can anyone tell how bad the damage really is without actually seeing it ? Do you think maybe it will be just a simple repair or am I looking at a whole new logic board?

    Until you take it in so that a technician can look at it, it is all guessing and nothing more.
    Allan

  • Hi all, my mac book pro boots up, but my track pad operation is strange, cannot click on anything, although it moves around screen ok. Cannot launch anything, nor close anything. Cannot get task bar to pop up either with the mouse movement.

    Hi All,
    My mac book pro 13". It boots ok and skype launches on boot up. connects to internet etc. However, whilst the mouse moves around the scren ok, used via the track pad, I cannot open anything, close anything, or get the task bar to pop up.
    I can close the laptop down via the power key, and can use some short cut keys, but the track pad operation is iffy, can you suggest how I rectify this.
    I have now solved this, for future reference, I have a magic track pad as well and that was connected via bluetooth and sitting else where in the house. It blocked the laptops trackpad operations. When disconnected, my laptop track pad works fine.
    Cheers
    Jazzy
    Message was edited by: Method TV

    Hi All,
    My mac book pro 13". It boots ok and skype launches on boot up. connects to internet etc. However, whilst the mouse moves around the scren ok, used via the track pad, I cannot open anything, close anything, or get the task bar to pop up.
    I can close the laptop down via the power key, and can use some short cut keys, but the track pad operation is iffy, can you suggest how I rectify this.
    I have now solved this, for future reference, I have a magic track pad as well and that was connected via bluetooth and sitting else where in the house. It blocked the laptops trackpad operations. When disconnected, my laptop track pad works fine.
    Cheers
    Jazzy
    Message was edited by: Method TV

  • How to transfer own -done with the iPad- movies from iPad to PC ?

    How to transfer own -done with the iPad- movies from iPad to PC ?
    The fotos are possible to transfer, but not the movies

    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support

  • Why does the mouse move erratically in PSE 13?

    why does the mouse move erratically in PSE 13?

    I'm getting the same thing.  This is the second major problem I've had with Adobe Photoshop Elements 13.  They just corrected the first problem where there was a "default printer" error coming up when printing.  This is ridiculous.
    My mouse freezes erratically when I click on the main drop down menu.  It works okay when editing photos.  The mouse just acts erratically on the Main drop down menus.  My suspicion is the new update that fixed the default printer error has caused this issue.  I am really hoping someone from Adobe is viewing this forum.  It took 3 months for Adobe to fix the printer issue.  I hope this isn't the case with this issue.

Maybe you are looking for

  • FLV videos not playing correctly in Captivate 6

    I am running into an issue where my FLV video is not playing correctly when my Captivate project is exported out and saved to the web. The FLV video is about 20 mins long (~100 MB) and it is being streamed from Kaltura. The FLV video is inputted into

  • Safari video not playing

    When I open a post with an embedded YouTube video in Safari, the video does not appear (it is there and plays well when I open the same page on Chrome). Also, using Blogger, I am suddenly unable to use any features in pop-up windows; the windows appe

  • Unclickable flash content

    Hello! I'm having some curious problem with flash. Sites with flash contetnt went fine. Especially video streaming sites. But some sites (especially online materials from CISCO networking academy) are going wrong. I mean, the content displays the way

  • How do I stop the "Mozilla Firefox Start Page" from loading everytime I start Firefox? My home page is opening AND the (totally useless) 'start page'.

    Just installed Firefox on my second Windows machine (running XP Home). Unlike my other installation, every time I start Firefox I get TWO tabs - my home page AND a "Mozilla Firefox Start Page" that contains only a Google search input. I don't need th

  • PDF trouble

    I can open my PDF documents but they will not stay open; after about 10 seconds they close on their own. I've downloaded update from your web page but nothing has fixed the problem.