Why do i get the wrong Y co-ordinate from a Jbutton?

i have a jbutton
within a jpanel
this jpanel and some other are within a jtabbedpane
the jtabbedpane is inside a jframe
(between the jframe and the jtabbedpane there's also a bar tho i think it doesnt mattter)
when i get the jbutton coordinates with .getX(); and .getY();
i get the correct X coordinate
but i get the wrong Y coordinate (the Y coordinate i get is at the top of my jframe window)
why?
how can i get the real Y coordinate of the jbutton?

askrym wrote:
i'm calling
<obj of jbutton>.getX();
........... .getY();That should give the same results as getLocation. See the two posts above your last for your solution.

Similar Messages

  • Why do I get the wrong date on my photos and emails?

    All my photos in iphoto and emails are coming up with the wrong date. Why is this and how can I correct it?
    I have made sure that the computer's date and time are ok.

    You may want to re-post in the iPhoto forum if it only happens in iPhoto.

  • Why am I getting the wrong version of my photos in photo stream?

    I am using iphoto '11 v. 9.2.1.   Basically I have gone around in circles but firstly should say I have reset photo stream in icloud.com and on all devices including my Mac.  I have iphoto on the Mac and have uploaded some photos from the camera from a recent trip.  This is all as I would normally do.  After a couple of edits I now have two versions of the photo in the event album - the edited and unedited both with the same name.  I am guessing this is like the old iphoto's two libraries??  Anyway that's not really the problem I don't think but when I drag the edited version of the image to my photo stream (I have automatic turned off at the moment) it is the unedited version that shows up there.
    Am I missing something obvious here?  All I really want to do is use the photo stream to allow me to then save the images in a new folder on the ipad so I can bore some friends with our photos of the trip and of course I want to show them the beautiful edited versions not the unedited?
    Thanks

    Hi - thanks for the reply.  I have tried your suggested test and it is the same
    I also tried changing the name of the edited version and also deleted the original versions.  My event folder was just left with all the edited versions but still when I dragged them over the the photo stream it showed the unedited.
    Stuck - I am assuming that if when I save the file after editing I save as and create a completely different version then this would overcome the issue - I'm just not sure I should have to do that??
    Thanks

  • Why i always get the message "Oops! Something just went wrong on our server! We've logged the prbl"

    why i always get the message "Oops! Something just went wrong on our server! We've logged the problem and will fix it as soon as possible. Sorry for the inconvenience." everytime i added new apps on eprintcenter.

    I will need a little more information in order to help out. What model of printer is it that you own? Are you able to ePrint with the machine when you send emails to it? Have you every been able to successfully download apps to the machine without getting the error message? Do the apps that you download successfully download at any time after that error and later work?
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Why do we get the data from a view to a report.

    hi
    why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

    hi Jyotssna,
      Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
    Regards,
    Santosh

  • Why do I get the "iwork discontinued" message when I click on the share feature in pages?

    Why do I get the "iwork discontinued" message when I click on the share feature in pages?

    If you are using an older version of iWorks, the sharing was, I understand discontinued in July 2012.
    New versions of the iWorks suite, Pages etc now have the sharing option, introduced earlier this year.

  • Why do I get the movies only in english?

    As a new Apple TV user this might be a stupid question for pros on Apple TV. Nevertheless, why do I get the movies which I wanted to receive in the German version only in the English version. I make my choice in the German iTunes-Store, I watch the trailers in German, but when I order the movie, I get it only in English. Am I stupid or what?
    Thanks for your help.
    Hartwin

    Hartwin, that's odd. Does this happen with every movie you've rented?
    And do you perhaps have a US iTunes account that you're using to order from?
    Other than that, I really can't think of an answer.

  • While installing Adobe Acrobat 8 on Windows 7 Professional why do I get the message "Adobe pdf.dll on windows Vista CD-ROM is needed.

    While installing Adobe Acrobat 8 on Windows 7 Professional, why do I get the messaage "Adobe pdf.dll on Windows Vista CD-ROM is needed"?

    Because your software is far too old for Windows 7.

  • Why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloadi

    why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloading lightroom cc (previously using lightroom 5)...am i backing up properly or not???

    Open Pictures folder and move the files named lrcat-journal and lrcat.lock to Desktop.
    Make sure that , they are not inside Pictures folder any more and try to open backup from Lighrtroom and check..
    Any LRcat file with .lock extension , move it to Desktop.

  • Why am I getting the message "project could not be prepared because an error occurred. (File already open with write permission)" when trying to share my imovie to media browser?

    Why am I getting the message "Project could not be prepared because an error occurred. (File already open with write permission.) when trying to
    share to the media browser?   I have done this many times before and never got this message.  This is very frustrating.  Can anyone help me?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Easiest way to find out if this is the problem is by:
    • Create a new User-Account
    • Log out of Your old one and into this
    • Re-try iMovie
    If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occurs only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • Why do I get the message that my operating system is not supported?

    My computer is running Windows 7 - 64-bit. I have the latest softwear on both my iPhone and my iPad. I have installed Edge Inspect on these devices and have the Google Chrome edge inspect extension installed. I have been able to enter my passcodes for both devices in the Chrome extension. Why do I get the message that my operating system is not supported just yet?

    This is VERY interesting ... even though I got that strange message, once I linked my iPhone and my iPad to the Google extension, it worked! Whatever I display in Google Chrome automatically displays in the Edge Inspect app on the small devices. This is neat! The only problem that I can see is that Adobe needs to replace the error message with information about how to use the application.

  • Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Tha

    Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Thank you very much!

    Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Thank you very much!

  • Why am I getting the pop-up "the iTunes library file cannot be saved.  You do not have enough access privilieges for this operation?"  All folders set to appropriate permissions, tried deleting and reinstalling iTunes, can't get rid of it.

    Why am I getting the above pop up?  How to make it stop?

    Hello deborahjael,
    Thanks for using Apple Support Communities.
    To troubleshoot this error message in iTunes please follow the directions in the link below.
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/ts1387
    Take care,
    Alex H.

  • Why do I get the error message: "The file "iTunes Library" cannot be read because it was created by a newer version of iTune." I am using iTunes9.1.1 which, I believe, is the highest for OS 10.4.11 ?

    Why do I get the error message: "The file "iTunes Library" cannot be read because it was created by a newer version of iTune." I am using iTunes9.1.1 which, I believe, is the highest for OS 10.4.11 ?

    Hello,
    Did you reinstall lately?
    My 10.4.11 Drive seemes to have iTunes 7.6.2 on it, have you tried Software update to see if iTunes is listed?
    Another 10.4.11 drive has iTunes 6.05 on it... I hate upgrading iTunes, seems worse at every upgrade.
    The 10.5.8 drive I'm booted from now has iTunes 8.02 on it.

  • Why I keep getting the NO SIGNAL on my monitor??

    Question.....Someone gave me a Pc, I notice everytime I turn it on I get a No Signal icon on my monitor. So I open the unit up, took out the memory stick. Clean it off from dust with dry rag. Power it back up, still the same thing. I notice everything else is running like fans, even the little green light was on.  I went on youtube, tried those tips too, still the same reaction. Just before I got ready to give up on it. I notice there is no graphic Card. I was wonder could this be the reason why I keep getting the No Signal sign everytime i turn the pc on???? Please Help!!!!!In simple english Please......lol. Im very new at this.

    Does the iPhone NOT tell iTunes if you've played a track or not?
    Yes, but the entire track must be listened to - until the track ends.
    A song is not marked as played until the song has completed and the iPod starts playing the next song. The song must be played until the very end, and the same with a podcast.

Maybe you are looking for