Help! How do I get a JLabel's location?

Hi!
I need to get a JLabel's location to correctly position a rectangle at that position. Doing a getLocation() or a getBounds.getX() returns only a 0.
Thank you
Priya

See my answer at the link shown below:
http://forum.java.sun.com/thread.jsp?forum=57&thread=486670
The answer you got from using JLabel's getLocation() is relative to its parent. Use the SwingUtilities to convert it to a location relative to the screen or another container.
;o)
V.V.

Similar Messages

  • Calendar help: how do I get One event to show up on two calendars

    Calendar help: how do I get One event to show up on two calendars? For example I want to enter vacation only once but I wanted to show up on the calendar that I share with my husband and the calendar I have with my assistant.

    The signature should show up with each account. Usually the complaint is not having an option for multiple signatures or not being able to have a different signature for each account.

  • TS4036 I can not find my photos or contacts.  Help how do I get them back after a icloud back-up was done due to needed a new phone..

    I cannot find my photos or contacts.  Help how do I get them back after a iclound backup was done due to needed to get a new iphone.  HELP

    I believe I had leopard and I was having issues getting errors of system not being supported. I contacted Apple and was advised I needed to upgrade to snow leopard. My laptop is from 2009 and I haven't done anything to it till now. The apple rep also stated I should do a fresh install when putting snow leopard on so my laptop would run faster. Apple rep told me to get a external hard drive to put my info on it so the fresh install would reset everything to like it was brand new. I had someone help me with getting everything on the EHD.. doing the right format and such and then once that was done I put in the CD for snow leopard and hit install. Which brings me to now, with everything but my pictures. I have the EHD plugged in... now what? What do I do? I have looked in the EHD in iphoto and it was all standard images *not my pictures but images of a check mark or an arrow again not actual pictures. I don't see a folder pictures and i looked for images and found nothing. I have Applications, Included Free Designs, Library, System, User Guides and Information and Users, those are my options and non of those have a "pictures"
    I have iPhoto '09 version 8.1.2 & Mac OS X version 10.6.3

  • I have adobe CS 5.1 and recently (after an update) it is giving me an error (Could not save...because of a program error) every time I try to save my work as a PDF   Help how can I get this resolved??

    I have adobe CS 5.1 and recently (after an update) it is giving me an error (Could not save...because of a program error) every time I try to save my work as a PDF>  Help how can I get this resolved??

    Run the cleaner, reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    And don't bother with running any updates unless you really need them or they fix a critical issue relevant to your workflow.
    Mylenium

  • Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    There are a number of OS X apps, many free, that will save your messages, allowing to view and print them. 
    http://www.softwarebbs.com/wiki/How_to_transfer_SMS_from_iPhone_to_Mac,_backup_i Phone_SMS_message_on_Mac
    Google, for other options
    Your "other" of 6 GB may include corrupted data or file sytem errors. If after removing the messages there is still >2GB, you will need to restore the phone in iTunes, first using a backup (made after deleting the messages) and if needed as a new iPhone.
    iTunes: Restoring iOS software

  • For updation of IOS 7.1.1 passcode required,I forget my passcode please help how can I get my passcode

    Hello,
    I forget my passcode please help how can I get my it

    You will need to try to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try Recovery Mode.
    Read this: http://support.apple.com/kb/ht1808
    Follow the instructions very carefully.

  • I deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    i deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    You need to restore the folder using the (Put back) selection (CTRL click).

  • I have lost the bar at the top of the screen , tools, edit, view, history, bookmarks, tools, help, how do i get it back ,

    hi, i have lost the bar at the top of the screen, which has file, edit, view, history, bookmarks, tools, help, how do i get it back please, will br gratefull fo any answers.

    Hit the '''Alt''' key ''(Cmd for Mac)'' to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark.

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • The new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    gorxxx83 wrote:
    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?
    Downgrading is not supported.
    Here are some basic troubloeshooting tips:
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
      - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.
    If you want to contact Apple directly, call 1-800-MYAPPLE (1-800-692-7753), or go to getsupport.apple.com. 
    Don't waste your time asking for a downgrade of the iOS.  That's not an option.

  • I erased my recipes from my Ipad.Help how do I get them back_

    I erased my recipes form my notes on my Ipad.Help how do I get them back_

    Welcome to the Apple Community.
    The difficulty in restoring iCloud data from a back up is that the back up is older than the current version on iCloud and anything that is restored gets removed again when an iCloud sync occurs. I have previously suggested ways to recover contacts, calendars etc, and other users have confirmed that they work, as such I am making the following suggestions to recover lost notes, but please note, as yet success is unconfirmed.
    Recovering your notes is quite time consuming, you may wish not to save all your notes to save some time, if they are not of importance.
        1.    Ensure the device is connected to your local network.
        2.    Start the restore from iCloud back up.
        3.    Allow the devices settings to restore (watch for the confirmation of completion).
        4.    As the apps begin to restore pull the connection to your router WAN port (the one that goes to the telephone point).
        5.    Wait for the time out confirmation.
        6.    Open the 'Notes' app, and open your first note (assuming your deleted notes have now been restored).
        7.    Select the share option at the foot of the screen (rectangle with arrow) and choose mail.
        8.    Send the email to yourself (If they won't send, save them to draft)
        9.    Repeat steps 7 & 8, until you have copied all the notes you wish to save to email.
        10.    Reconnect the router to the internet and let the restore process complete.
        11.    Navigate to settings > iCloud and make sure 'Notes' syncing is enabled.
        12.    Open the 'Notes' app, check that iCloud notes have reverted to how they were before starting the restore.
        13.    Open the 'Mail' app and open the first email you sent yourself and copy the text you want in the note.
        14.    Open the 'Notes' app and create a new note in the iCloud, paste the text you copied.
        15.    Go to iCloud.com on a computer and check that the note has synced to iCloud.
        16.    Repeat steps 12, 13 & 14 until you have recovered all your notes.
    May I suggest that you carry out a back up to iTunes before you try anything, that way should things become even worse, you can at least restore back to where you are now.

  • Help- how do i get in contact with Apple via mail or chat for support?

    Help- how do i get in contact with Apple via mail or chat for support
    This is ridiculous, why can I not get in contact with Apple by email or chat with their support team?? How to do, please help.

    You cannot contact Apple support by e-mail or via chat.
    You have to contact AppleCare by telephone.
    If there is an Apple store nearby, visit the genius bar.

  • HT2518 During transfer windows machine went to sleep and now it ail not continue? Help how do I get it to start loading again? Transfer screen is stoppped at 7 minutes to go?

    During migration / transfer from windows LT went to sleep and now it will not continue?
    Help how do I get it to start loading again?
    Transfer screen is stoppped at 7 minutes to go?

    The large text size makes your post almost impossible to read.
    Excessive use of bold or capitals (also) makes posts difficult to read.
    You can drag most of the column headings left or right, or right-click on the header to turn columns on or off.
    Once you've used File > Display Duplicates or Shift > File > Display Exact Duplicates you can use File > Display All or the Display All button at the bottom of the list to restore the display.
    For general advice on organising your library see this article on Grouping tracks into albums.
    tt2

  • Please help how can I get Number of activations changed?

    How can I get my iPads reset for number of activations? I have had an original iPad and two iPad 3 and now 3 iPad Air due to defective tablets.They were replaced for technical issues. I keep getting this message on both devices in BAM2 E_AUTH_BAD_DEVICE_KEY_OR_PKCS12
    I have not even read the book I originally purchased from BAM. Please help.

    They'll know more in the Adobe Digital Editions Forum

  • After an automatic upgrade, all my bookmarks are gone, none of the troubleshooting answers help - how do I get them back?

    I just simply turned on my computer and clicked FireFox as always. Looks like some updates installed and now all my bookmarks are gone. I've looked at all related troubleshooting answers and nothing works. How do i get my bookmarks back?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *http://kb.mozillazine.org/Lost_bookmarks

Maybe you are looking for

  • I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone.

    I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone. The internet goes out and I have to reset network setting each and every time. This is only a temporary

  • Mail reset to default after 10.5.7 update!

    Ok I just updated from 10.5.6 to 10.5.7, and now when I launch Mail, it acts like it's a brand new computer. It asks me to enter my address and server info. When I do that, it starts downloading all the messages from scratch. My saved messages still

  • Screen resolution in va01

    Hi All, i am facing a problem in va01 bdc. The no. of lines that are visible depends upon the screen resolution . i am using ctu_params but its not working f_option-updmode  = 'S'.   f_option-defsize  =  '1'.   f_option-dismode  = 'E'. call transacti

  • Import Templares from Motion to DVDSP?

    I can't find a template in DVDSP that is appropriate for my subject, but can find several in Motion that fill the bill. Is it possible to import a Motion template into DVDSP in a way that converts it to a useable file in DVDSP? If so, what are the st

  • Finding Mode of an array of numbers.

    I'm having troubles with finding the mode of an array of numbers. When the mode is in the middle of the set of numbers, it works, but when it is at the end, it doesnt. For example.. if i had the numbers ... 2,3,3,4,5,6,6,6 in an array, it would tell