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

Similar Messages

  • 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

  • How to extract the mouse cursor image without using JNI

    I want to get the image of the mouse cursor of the system using java. The Robot class captures the screen only, but the mouse icon image is not the part of the screen, so it is not easily detected. But we can get the mouse cursor position using API, but how to get the exact image icon, without using JNI. I don't want to generate my own cursor at that position.

    I am building a Remote Desktop kinda app using java..... I want the screen of the remote comp to be viewed on my screen and generate events from my machine to the remote machine. So, I am capturing the screen images of the remote machine. But the cursor is not part of the screen object. i want to extract the cursor image icon from the remote machine to my machine and render the image.

  • Making the mouse cursor invisible.

    I am currently in the deployment phase of software made for two touchscreen kiosks.
    When moving the applications over to these kiosks I realized that we needed to make the mouse cursor invisible.
    I have tried the
    Cursor cursor = new Cursor();// ALthough i was unable to find a cursor constant that gave me an invisible pointer.
    testFrame.setCursor(cursor);
    Any ideas how I could remove the pointer from view alltogether?

    Toolkit tk = Toolkit.getDefaultToolkit();
    Image image = tk.getImage("yourPicture.gif");
    Cursor invisibleCursor = tk.createCustomCursor(image, new Point(0,0), "invisible cursor");I usually use a 1 x 1 transparent gif.

  • [SOLVED] How do I autohide the mouse cursor in xorg?

    My Google Fu isn't working for me today.  I've found references to autohiding the mouse cursor in xorg, but no examples.  Anyone know the right incantation for xorg.conf?
    Last edited by eerok (2008-02-14 18:42:11)

    From the man page:
    unclutter removes the cursor image from the screen so that it does not obstruct the area you are looking at
    That's my reason, anyway.
    I mostly use the keyboard, so often the mouse cursor is just an eyesore. I can move it out of the way, but why not hide it altogether?

  • Remove the mouse cursor

    Hi to all,
    I have to make a brief presentation of the show with a medley of the songs.
    Since it is not possible the coexistence of a number of slides with a single song and other slides with other songs I had to create two projects, the first with credits and in the last slide a giant rectangle with the hyperlink for the second with the medley.
    It all works fine (just remember to load the second project in Keynote before to click the hyperlink ), and in my old MB works very fast, but when I click on the rectangle it appears the mouse cursor and it is not very professional.
    Is there a way to remove the display of the cursor? I can accept also a tiny dot or similar, the main thing is that at the moment of blank the audience don't see this "thing" shaped like a small hand moving in the background scene searching for the "nothing" to click.
    The config is: Macbook mid/late 2009, 13", 4 Gb RAM, Mountain Lion 1.8.2 / Keynote 5.2.
    Thanks and sorry for my bad english.

    you must not create a small button, you need a large button, no need to move the mouse at all as the button is always in the same place.
    As I wrote: I'll have to try this when I'll have a projector (or an external monitor), at this time with the computer screen set to 1920x1200 while the project is 800x600 (as most 4:3 projectors) I can't click perfectly into the corner, there's too much scope.
    buy a two button remote, same price as a cheap mouse
    Wow! € 32.00! I know mouses that cost even € 9.00 (for example the Logitech that I use
    with the MacBook) and when I'm on stage I prefer to use less laser / wi-fi / bluetooth possible. No, I have to put the money aside and buy a trackball, as I have written before is also useful for other applications.
    which ever show pointer preference you select the cursor is going to be visable because you are using hyperlinks.   However, if you use the static cursor position extreme bottom right, the cursor wont be seen as it is so small and partially of screen - also use    command c  to hide it.
    I'm definitely getting older (will be 48 in April... poor me!), but I can't understand: if the projects are 99% composed of slides with images, audio, transitions, etc.. and only the last slide has an hyperlink that is used to connect the following, why should I risk to let see the mouse cursor at the slightest movement, error, earthquake ... and everything that could happen in a location of a theater director?
    The "C" key is used to display / remove the cursor, but only if the mouse is completely still, while the other setting (the one I use) the mouse is never! I could get close to the lower right to the end of the project and then click the hyperlink ... or not?

  • On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    I managed to boot the computer and get the desktop to show. I now have a "repaired" computer. There are several problems that have cropped up. One is that I can only start up now in Safe Boot mode. Is there a way to turn it off? Also, I do not have a sound list, so I can't access anything requiring audio. Google Chrome only shows up as a white screen. Pictures that loaded before don't load in browsers, etc. Any suggestions? I figure I should reinstall Mac OS Lion for starts, maybe even do a mirror backup and reformat the drive. I think this drive has turned into scrambled eggs...what a headache!

  • How to change the mouse cursor icon type when mouse moves out of client area ( propertysheet) WTL?

    I got stuck with an issue in property sheet .I want to load different cursor when the mouse position is within the client area and load another when moves out of the client area.
    In the porpetysheet I added four page. In the first page when I click next I am loading cursor of IDC_WAIT type and loading IDC_ARROW when the mouse moves out of the client area.
    In the page class I triggered the event for WM_MOUSEMOVE as follow:
        MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
    LRESULT OnMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    if(TRUE == m_bIsNextBtnClicked)
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    else
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    This event is getting triggered and absolutely had no issue with this. Similarly I tried adding `MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseLeave)` this event making an assumption that this will get triggered if the mouse moves out of the client area,  but
    this event did not get triggered at all.If this is not the mouse event to be triggered for mouseleave which event should I trigger?
    LRESULT OnMouseLeave(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    Now when I click Next button , **I was actually calling a function which is taking sometime to return** . Before to this function I am loading IDC_WAIT cursor i.e., 
     `::SetCursor(LoadCursor(NULL, IDC_WAIT));` . 
    Now when move the mouse cursor on to the non-client area I want to load IDC_ARROW cursor i.e., 
        ::SetCursor(LoadCursor(NULL, IDC_ARROW)); 
    When the moves on to the non-client area I am handling the mouse event in sheet derived class as follows,
    MESSAGE_HANDLER(WM_NCMOUSEMOVE, OnNCMouseMove)
    LRESULT OnNCMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return 0;
    This event is not getting triggered until unless the function in the Next button event is executed.
    I want both of them to be done in parallel i.e, click Next button now hover mouse on the client area, Busy icon should come and when mouse moves out of the client area then IDC_ARROW icon should come.
    LRESULT OnWizardNext()
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    m_bIsNextBtnIsClicked = TRUE;
    BOOL bRet = MyFun();
    m_bIsNextBtnIsClicked = FALSE;
    //Until this function(MyFun()) is executed **WM_NCMOUSEMOVE**
    //event is not getting triggered.But this event should get triggered and I
    //should be able to see the change of cursor within and out of client area.
    Can anyone kindly help me to solve this issue.
    SivaV

    Hello
    sivavuyyuru,
    For this issue, I am trying to involve someone to help look into, it might take some time and as soon as we get any result, we will tell you.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Get rid of the mouse cursor when on desktop touch devices

    Hi there,
    I'm using sap.ui.commons controls to build my application. However, this application will sometimes be used on touch devices like large touch screen HDTV connected to a desktop Windows PC.
    When clicking on a button, the button gets focussed. However, as clicking on a control moves the mouse cursor, too, the button gets a mouse over look and feel and the focus style applied.
    Is there a way to disable the mouse over events and style sheets for desktop controls in an easy way? I want to get a similar behaviour like using an application on a device without a pointer (like a tablet or smartphone). No mouse over, no focus.
    Regards
    Tobias

    Hey Tobias,
    have a look at this Thread: javascript - Disable hover effects on mobile browsers - Stack Overflow
    It helped me and might contain a solution to your problem as well!
    Regards,
    Timo

  • Getting the name of the window under the mouse cursor

    Hello All
    Is there a way to receive a window name of the window under the mouse cursor? All windows in interest are LV windows, and all of them works separatelly. After the mouse click I would like to get the window name.
    The reaso nfor asking is that I have a sequence of setting of different windows. I need to create a doccumentation and I need all windows front panels send to MS Word.
    I thought that my application can read the window names and by using the LVwutil32 get the front pannels of the windows and send them to MS Word.
    Problem is that in the library I do not have a function like "Window on Top.vi" or something like that.
    Anyways, the problem for me now is how to get an active (most top) window
    name?
    thanks
    Pawel

    Hi Pawel,
    I found the following VI in my "trunk" that I made a while ago (written in LV6.0.2). It returns the active VI (and thereby) the Window name. Mayby you have some use of it, but I believe this is what you want. Only works for Windows though.
    Regards,
    Mattias Ericsson
    Endevo, Sweden
    Attachments:
    WindowsUtil_GetActiveVIWindowName.vi ‏54 KB

  • Why does the mouse cursor move to away from the currrent application without the mouse being moved

    the mouse cursor moves away from the current application without the mouse having been moved - this started with the new version - re-installing Firefox makes the problem go away for a short period - re-installing is not a solution
    == This happened ==
    Every time Firefox opened
    == a few days after installing 3.6.3

    Hello Jim.
    It's probably one of three things:
    #your mouse is getting old (this behavior is common in old optical mouses);
    #you have software that is making your mouse cursor behave unexpectedly (I know of an option in Windows that will automatically move your mouse to windows buttons...);
    #or you may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?

  • How to change the mouse cursor

    Hi,
    I need to change the mouse cursor on a mouseover event of a text filed?
    Please help for the same...
    Thanks,
    Abhijit

    I guess your are simply out of luck.....share with us if you find a way.

  • Bookmark shortcut is not working if the mouse cursor is focussed in flash plugin.

    I was trying to open bookmark panel using shortcut keys [ctrl+shift+B] when the mouse cursor is focused with flash plugin. But it fails to open. But i clicked the page and tries it again it opens the bookmark panel.
    Try with the following link
    [Eg: https://learnable.com/courses/a-crash-course-in-mobile-web-design-195]
    This may or may not be a issue.
    Its just a suggestion..

    You're welcome
    See also:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=330412 bug 330412] - There should be a key defined to get the focus out of the plugin
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=93149 bug 93149] - No way to move focus between plugin and browser from keyboard

  • I want to turn my macbook air off. the shut down button already appeared but the mouse/cursor just hang and won't work. even after pressing the enter button to shut my mac off won't work. what will i do?

    i want to turn my macbook air off. the shut down button already appeared but the mouse/cursor just hang and won't work. even after pressing the enter button to shut my mac off won't work. what will i do?

    This is not a reply. I just want to elaborate on this problem.
    My computer freezes occasionally when it is used after being sleep for a while. The spinning ball appears and everything is totally disabled. Nothing on the keyboard works.
    The mouse moves, but does not work.
    The only solution is to turn the power off and on (losing all data in open applications.)
    I kept the System monitor running on the side to find out which program was running when the computer froze. The Monitor as well as all other applications froze, but the data showed:
    Firefox 18.4%
    Activity Monitor 0.9%
    Firefox Plugin 0.2%
    This is all the information I have. By the way, I am using iMac with OS 10.6.

  • Could anyone tell me how too change the mouse cursor to the waiting mode?

    Could please anyone tell me how too change the mouse cursor to the waiting mode while my applet is processing?
    Well i have 3 combos in my applet.....and in my actionPerformed code i have:
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == combo1) {
              setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_reg = combo1.getSelectedIndex();
    Do_Accion1();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    if (e.getSource() == combo2) {
    setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_mun = combo2.getSelectedIndex();
    Do_Accion2();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    if (e.getSource() == combo3) {
    setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    ind_loc = combo3.getSelectedIndex();
    Do_Accion3();
    setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    } // Fin action event
    But my cursor is never change to WAIT_CURSOR....Somebody could help me please?....
    Thanks in advance....
    Mary

    YourComponent.setCursor(
         Cursor.getPredefinedCursor(
         Cursor.WAIT_CURSOR));

Maybe you are looking for

  • Knowledge Transfer Preparation Questions

    Hi Friends I have recently joined as a BW Analyst and will be attending another work location for Knowledge Transfer about the current system from one of the BW Consultant. I would appreciate your views regarding important questions I need to ask dur

  • Overclocking 2.4 800FSB - Start to Finish

    I've notice that the cheapest way to go for speed appears to be the following combo which i hear is getting quite popular with this MB. So i was hoping that everyone or anyone could help out with a guide for the beginner from scratch. I will be buili

  • Adobe Acrobat Pro 8 Installation Problem

    I've had Adobe Acrobat Pro 8 running fine for several years on XP Pro.  Our company rolled out upgraded hardware with a new image about a year ago, and I cannot successfully install 8 on any of the units.  Most recent issue, using CD, install went up

  • How can i erase  the account in the Macbook??

    How can i erase the account in the Macbook since i don't have the administrator's name and password, because whenever i install a new new software into the Macbook, it ask me for the administrator's name and password, but i don't have it and i didn't

  • Getting new font into BOBJ Edge 3.1

    Hi all. I have installed a new font on my server (Book Antiqua). I then open the fontalias.xml file and the i18n.xml to get this font seen by the Enterprise system. Everytime I do this and clear the cache and reboot the server my DesktopIntelligenceP