Get co�rdinates of a clicked point

hello,
I have a board for a boardgame. I wanted to define the areas in if-statements so that I could regard witch field it was. But if I click on field 1,1 (between x = 30 and x = 100 and between y=30 and y=100 for example) and there is a piece (a canvas) on it, I cant get the co�rdinates of the mouseClicked event.
What can I do about this?
Daan
(holland)

Not sure what your problem is. However, getting a mouse click is simple and easy, and when you catch the event, you can say getX() and getY(). It doesn't matter what graphics are being displayed. The mouse event is an operating system call that gets sent to the Java VM. It has no idea if a piece is there or not. It should work regardless.

Similar Messages

  • When i try to see some of my photos the photos appear and when i click on the individual photos I get a circle with an exclamation point. What's going on?

    Why am I getting a circle with an exclamation point when I try to acces my photos ?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • When I click on the pic, all I get is a huge blurry exclamation point.

    Prior to today's upgrade, I could highlight "photos" under Library, double click on any of the pics and get a blown up version of the picture. Now when I do that, I get a blown up blurry exclamation point. Thoughts?

    Thoughts?
    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • When I turn on my computer I get the message APPLESyncNotifer.exe   Entry Point not found.

    Have a 5th generation nano and when I connect to my computer I get a message APPLESyncNotifer.exe  Entry Point Not Found. Not a computer geek so I am stumped. Anyone out there who could help? I have reinstalled ITunes and restarted my computer to not avail.

    Copying & pasting SQLIte3.dll worked out well for your computer?
    Just read your trouble with your iPod nano 5th generation & Windows PC, how about trying the one I found on this community before?
    Click the start button and type in 'msconfig' in search, and, in system structure utitily, click on the tab of 'startup' and check off the box of 'AppleSyncnotifier.exe' and reboost your system.(You have to follow down till the end of the place of the file.) That'll solve your trouble.
    I don't know you connect iPad or iPhone at all, that may change the solution? Hoping this suggestion also work out for you & your PC.

  • Get ! message when double click on a photo in iPhoto

    Why am I getting ! when i double click on a photo?
    How do I get the image back?

    The exclamation point will be shown,when iPhoto has lost the connection between the thumbnails and the original image files. Then it cannot display the full image.
    Try, if rebuilding the iPhoto library will help,  see this document:  http://support.apple.com/kb/HT2638
    If iPhoto's rebuild does not help, try rebuilding with iPhoto Library Manager, see Old Tod's post here:   Rebuild the iPhoto Library
    But before rebuilding,  backup your iPhoto library, just in case.

  • Updated itunes and getting errors messages: iTunes.exe-Entry Point Not Found

    After updating itunes, I get the message iTunes.exe-Entry Point Not Found. The procedure entry point AVCFPlayerEnableHardwareAcceleratedVideoDecoderKey could not be located in the dynamic library AVFoundationCF.dll.
    Then another error message tells me: iTunes not installed correctly. Please reinstall.  Error 7 (Windows error 127). I've tried to repair which looks successful until I try the desktop shortcut as well as going into the exe file in program files. Still the same message.  Operating a windows XP service pack 3 with 32 bit. Help would be most appreciated.--No problems with itunes until this recent update.

    iTunes.exe-Entry Point Not Found. The procedure entry point AVCFPlayerEnableHardwareAcceleratedVideoDecoderKey could not be located in the dynamic library AVFoundationCF.dll.
    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever

  • Crop image using 2 clicked points on image.

    HI,
     I want to crop an image  based on 2 clicked points.
    For ex:
    this is an image to be crop:
    take 1st click point as center and 2nd click point as radius and crop that part as square and forms new image.
    And new image should be something like this:
     This is what I want.
    I have done getting center point using code below:
    OpenFileDialog op = new OpenFileDialog();
    ImageBrush ib = new ImageBrush();
    private void Image_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    private BitmapSource CutImage(BitmapImage img, Point p1, int width, int height)
    return new CroppedBitmap(img, new Int32Rect(Convert.ToInt32(p1.X), Convert.ToInt32(p1.Y), width, height));
    double xAxis = 0.00;
    double yAxis = 0.00;
    private void imgBackground_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Point center = e.GetPosition(imgBackground);
    Point border = e.GetPosition(imgBackground);
    xAxis = center.X;
    yAxis = center.Y;
    ib.ImageSource = CutImage(new BitmapImage(new Uri(op.FileName)), new Point(xAxis, yAxis), 300, 300);
    CanvasPanel.Background = ib;
    XAML code:
    <Button Height="70" Width="70" Margin="6,1,892,929" Name="btnBrowseImage">
    <Image x:Name="browseIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\img.png" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/>
    </Button>
    <Image Name="imgBackground" HorizontalAlignment="Center" VerticalAlignment="Center" Height="799" Width="799" MouseLeftButtonDown="imgBackground_MouseLeftButtonDown" Stretch="Uniform">
    </Image>
    I hope now question is understandable.
    Plz, suggest me the way to get this.
    Regards,
    Viswa.

    Hi,
    I want to do in WPF coding.
    I need to add that cropped image as background to canvas in WPF.
    User have to select image and he wants to crop image using 2 points then it has to reflect as background to canvas.

  • How to get the text which was clicked in  a A href tag.

    I am displaying the names from database in a page as hyperlink. When this hyperlink is clicked I want to display the corresponding address from DB. What the problem is when the link is clicked how to get the name which is clicked. I know only to link to a page using href. Now I want the text which has been clicked. Pls help.

    Sorry to interrupt here!
    For the code you suggested:
    David,
    if the target path is "http://localhost/testing.jsp", then
    the code would become:
    David.
    So what would the difference between the code shown above and this code:
    David
    What is the function for these two symbols: "<<" and ">>"?

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • I just purchased Photoshop 13 for PC MS Windows 8.1  In trying to install, I get the following message after clicking on the 2nd file.  "The file archive part of Adobe Photoshop Elements 13 is missing.  You need all parts in the same folder in order to ex

    I just purchased Photoshop 13 for PC MS Windows 8.1  In trying to install, I get the following message after clicking on the 2nd file.  "The file archive part of Adobe Photoshop Elements 13 is missing.  You need all parts in the same folder in order to extract Adobe Photoshop Elements 13.  Please download all parts.:  I've also gotten an Exit Code: 7 when trying to install.  I've turned my McAfee virus system off while trying to install. 

    Hi,
    Have you tried downloading Photoshop Elements 13 from here?
    https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
    There is only one file to download - which one depends on your system (32-bit or 64-bit).
    These are the trial versions but will convert to the full version when you supply your serial number.
    Brian

  • No issues, but curious..why do I always get permissions repaired when I click on 'repair permissions in Disk Utility......it usually has to do with core permissions and it's happened since i got this MacBook Pro in 3/11..it continues with 10.7

    No issues, but curious..why do I always get permissions repaired when I click on 'repair permissions' in Disk Utility ??......it usually has to do with core permissions and it's happened since i got this MacBook Pro in 3/11..I'll try this every 2/3 wks and always get repairs.....yet, I don't really have issues....it's been weird.......it continues with 10.7 and the update to 10.7.1.. a sample:
    Permissions differ on “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/da.lproj/UIAgent.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop Message.app/Contents/Resources/da.lproj/UIAgent.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/da.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreen.app/Contents/Resources/da.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”
    Group differs on “Library/Preferences/com.apple.alf.plist”; should be 80; group is 0.
    Repaired “Library/Preferences/com.apple.alf.plist”
    Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

    As described in this article, don't worry about it:
    http://support.apple.com/kb/TS1448?viewlocale=en_US

  • How do i get the music from my click wheel ipod into my itunes

    How do i get the music from my click wheel ipod into my itunes library.

    You cannot transfer song files from iPod to computer using iTunes, except for songs purchased from the iTunes Store. However, there are third-party methods and utilities that can transfer from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the song files are on your computer, you can add them to your iTunes library.

  • I''m new to Mac, how do I install Adobe CD? I put it in the CD drive and get a menu, everything I click on goes nowhere. In Microsoft, I installed many programs with no problem

    I''m new to Mac, how do I install Adobe CD? I put it in the CD drive and get a menu, everything I click on goes nowhere. In Microsoft, I installed many programs with no problem

    Is the Adobe CD a MAC app ?
    If it is a program for Windows you will not be able to install it.
    If you nedd that program you can either buy the equivalent for Mac or install a way to run Windows under Mac (may be a cheaper solution)

  • I try to log into my Apple ID and it says that it has sent a E-Mail to my Apple ID to vertify that it is me, I understand that but what I don't get is that I can't get onto my account to click open the E-Mail to vertify myself. Any Help?

    I try to log into my Apple ID and it says that it has sent an E-Mail to my Apple ID to vertify that it is me, I understand that but what I don't get is that I can't get onto my account to click open the E-Mail to vertify myself. Any Help?
    This is on the Apple ID manage and create page, this has happened to three of my accounts and I seem to get to the same exact spot and it just contradicts itself and won't let me log on at all. I have hooked up two E-mail accounts to the Apple Account and Vertified the accounts through the E-Mails sent to the external E-Mails but it still doesn't let me get into my Apple E-Mail at all.

    I logged in changed the primary E-Mail address to a different one, vertified it then tried to log in it said either to send an E-Mail to veritify again or to do my security questions, so I choose to do the security questions and put in my Birthday like it asked and it said that it was wrong and I had to authenticate it to get in, why is it so hard to just set up a Apple ID really though!
    So I tried the E-Mail to and it has not sent me an E-Mail then I tried to log in again and it has locked me out of my account so I try to recover my password and it gave me the same options to get my password back and both options are doing the same as before, it says I don't know my on birth date or it is wrong or needs authenticate it, then the E-Mail doesn't come through!
    This is just stupid now.

  • I updated iTunes today (Windows).  When I tried to launch, I get the message, ""The procedure entry point AVCFURLAssetInheritURIQueryComponentFromReferencingURIKey could not be located in the dynamic link library AVFoundationCF.dll".

    I updated iTunes today (Windows).  I restarted the computer but when I tried to launch, I get the message, ""The procedure entry point AVCFURLAssetInheritURIQueryComponentFromReferencingURIKey could not be located in the dynamic link library AVFoundationCF.dll".
    I then did a new install of the latest iTunes version and got the same problem.   No more iTunes.
    HELP!!!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

Maybe you are looking for

  • Function module of querying item category in sales order generating

    Hi everyone, would you please help to tell me which function module can fetch the item category in sales order generation? any help will be appreciate. Thanks. Eric

  • Migration from Windows to Mac:

    Hello, I recently moved from WIndows and is very new to the Mac and so am not very sure how this thing will work. I have seen several posts on migration but it assumes one thing: that my Itunes Library Folder and My Itunes Contents are all in one dir

  • Encoding in Java XSU internationalisation problem

    I have SUN Solaris 2.7, JDK 1.2, Oracle 8.0.5, Oracle XSU 1.2. When I use KOI8-R text encoding and set this in XSU then I see only signs "?????", but if I set ISO-8859-1 then it's Ok. I could work with ISO-8859-1, but in Oracle it stores bad text. On

  • IS THERE ANY PROCESS IN ASSET REVALUATION

    hi sap guru's,        we are facing a problem for ex            we purchased a asset in 2003 for value 1cr 80lck. but the same value entered in the books is 2cr. Now we want to reduce the price of that asset in our books. Is there any process to do t

  • 10.5.2 fixed old problems, but caused many new ones!

    I had many of the problems reported using Leopard, including multiple daily OS crashes. After they released 10.5.2, I did an ERASE and INSTALL, reinstalled Leopard and performing all of the updates in a timely manner, repairing permissions after each