How to get absolute screen position for component in borderlayout?

I am trying to get the screen location for a point in a component in a panel. The panel has a borderlayout(). The component is currently in the CENTER position of the layout. When I use the getBounds() method for this component I can get the <x,y> coordinates relative to the client area of the panel. But that does not include the frame. I
Does anyone know how I can do this?

There is a convertPointToScreen method in SwingUtilities:
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/SwingUtilities.html

Similar Messages

  • How to get the baselinegrid position for a line?

    Hi All,
    How to get the baselinegrid position for a line in a paragraph?

    Hi,
    2nd line baseline grid for yourPara paragraph is:
    yourPara.lines[1].baseline;
    last line baseline is:
    yourPara.endBaseline;
    Jarek

  • How to get the caret position of component embedded in JTextPane?

    Hi great java developers ;-)
    I want to get the caret position of component which is embedded in StyledDocument / JTextPane.
    How has it to be done?
    Thank you very much!!!

    The Document doesn't know which textPane it belongs to. (It could even be shared by mulitple textPanes).
    You get the caret position of a any text component by using:
    textComponent.getCaretPosition();

  • How to get the screen groups for the screen field which are on selectionscn

    hiiii Experts,
                   How to know the screen groups for the screen field which are on selection screen.
    Thanks and regards,
    kasyap

         NAME                                             PNPABKRS-LOW
            GROUP1                                             SEL
            GROUP2                                             DBS
            GROUP3                                             LOW
            GROUP4                                             180
    to get this use this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name CS 'ABKRS'.
          BREAK-POINT.
        endif.
      ENDLOOP.

  • How to get the Useru2019s position when the user doesnu2019t have CP relation

    We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
    Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
    Regards
    Paul

    Hi Paul,
    Have a look at these tables.
    Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
    Central business partner address data
    The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
    Relationships between business partners
    Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
    Hope this helps,
    Kind Regards,
    Matthew

  • How to get 10 screens on a Mac Pro

    Hi All:
    I'm trying to figure out how to get 10 screens working together like one big desktop on a Mac Pro.
    Currently I have a 12core 2010 Mac Pro with 2 ATI 5770 cards driving 6 30" cinema displays.  Each of these cards are double wide.
    I want to connect 4 65" LED displays. 
    Does anyone have an idea how I can do this?  The Mac Pro has only 4 slots.  The two 5770s take up 3 spaces (because of their doulbe wide size).  The last slot has a OWC solidstate drive there.  I guess I could remove that and use just a regular SATA SSD if need be, but would love to get this done with just 3 slots.
    So some thoughts. There are two possible ways (ideal, and less ideal) that I can think of:
    IDEAL way:
    The ideal would be to find a single wide card that supports 5 or 6 displays, and use that.  I know that some people have had success flashing single wide cards, but it's not clear if all the ports are usable.  See here for an ATI card with 3 ports, single slot, that's been flashed:
    http://www.ebay.com/itm/Apple-Mac-Pro-ATI-Radeon-HD-5770-1GB-Video-Card-Single-S lot-5870-/150928552679?pt=PCC_Video_TV_Cards&hash=item23240af2e7
    Also, it's not clear if you could get 4 of those cards working to drive all 10 screens.
    However, there are single wide 5/6 display cards like this:
    http://www.newegg.com/Product/Product.aspx?Item=N82E16814150566&nm_mc=AFC-C8Junc tion&cm_mmc=AFC-C8Junction-_-na-_-na-_-na&AID=10440897&PID=3332167&SID=u00000687
    Has any seen or know of a 5 port card like the above that has been flashed to work in a Mac Pro?
    LESS ideal way:
    My guess is there are some PCI expansion chasis, and I can just put in 2 more regular ATI 5770s there.  I found this:
    http://www.jmr.com/en/products/14/3-slot-pcie-extender/
    and this
    http://www.magma.com/catalog/classic-pci-expansion
    I'm not sure how well these extenders work.
    EVEN LESS ideal way:
    Perhaps getting another Mac or PC and somehow VNC'ing in is an option, but this likely would be too laggy to run video from one computer to the other.  The ideal is to just treat the system like one giant screen, but I'm open to hearing any experiences/suggestions on getting this to work.
    Thanks so much!

    After reading up on it, it seems that the 6850 supports 3 displays. So perhaps I could do one 6870 (4 displays) in slot one, and then 2 single slot 6850's or 5770's in slots 2 and 3. This would give 10 displays.
    I have 3 questions then:
    (1) What is the quietest 6870 card people have successfully used in a Mac Pro?
    (2) What is quietest single slot 6850 or 5770 card successfully used in a Mac Pro?
    (3) Has anyone gotten thiis 5770 single slot card to work on a Mac Pro, and have they gotten 5 display ports to work?
    http://xfxforce.com/en-gb/Products/Graphics-Cards/AMD/ATI-Radeon-HD-5000/ATI-Rad eon-HD-5770-Single-Slot.aspx

  • In ABAP HR how to get job using position

    In ABAP HR how to get job using position (Using Infotype 1001)

    Hi anilkumar,
    1. u have the position
       u want the Job
    2. In hrp1001 table
       OTYPE = 'S' (for position)
       OBJID  = POSITION (AS ABOVE)
       SCLAS = 'C' (for finding job)
    <b>   SOBID = XXXXXX (here u will get the JOB)</b>
    regards,
    amit m.

  • How to get absolute path of a form within the Forms

    Aslam o Alikum (Hi)
    How to get absolute path of a form within the Forms 6i or 9i
    For example
    i am running a from "abc.fmx" from C:\myfolder directory
    can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"

    There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
    I already have some code to do all this for you see:
    http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt

  • How to get full screen caller pic in ios 7.1

    How to get full screen caller pic in ios 7.1.Please help me

    Haha .. I have seen one million post on this issue since 7.1 was released. Everybody hates it and it is perhaps Apple's stupidest design decision. I, personally, happen to like it ... or not mind it as much either way, I should say.
    But that's not what you asked ... Apple thought it was best for some odd reason to change the full screen pics to an itty bitty circle. As a previous poster said, it cannot be changed. But be sure to go to Apple's feedback website and let them know you are unhappy about it. I sense an iOS 7.1.1 coming out REAL soon!

  • Should I get a screen protector for my iPad air 2?

    SShould I get a screen protector for my iPad air 2?

    It's a personal decision. I've had a screen protector on my iPad 2 since the day it was bought. Same with my touch 4 and 5 (and I was able to sell my touch 4 to Best Buy in 'like new' condition thanks to a screen protector and case). other people swear never to use them and their devices are just fine.
    I have two nieces that like to use my iPad so I appreciate the protector and the ability to clean it off without worrying about messing with the screen. Others don't like how the screen protector feels and won't use them. So I'd say it boils down to how are you going to use your device. Will it sit on the coffee table and never leave the house and only be used by adults? then you can probably do fine without one. Gonna take it to school  and on vacation and all over the place using it wherever? then you should consider a screen protector and case
    Just don't go for the super cheap ones off amazon. They're cheap for a reason. I use a zagg one. it is expensive but it has a lifetime guarantee. If it's messed up protecting your device they replace it free. So worth it for me.

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get title templates library for CC?

    How to get title templates library for CC?  Do you have to download and install PP 6 to get them?

    Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?

    I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
    anyonr know how I can get my money back????????

    Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to get 64 bit version for premiere elements 12

    How to get  64-bit version for Premier Elements 12 ? 
    I download from ADMISY site.
    Click on win 64 bit and download it.
    When I try to install ther is a error  this download version is not for 64 bit I have try many times but same result

    Hello
    I have been away some days
    ADMISY is a software partners for Adobe
    I running Win 7 Home Edition
    I have received a card with a code when I bought the program and the I
    download from ADMISY
    Sending serial and installation warning
    PhotoshopElements_12_WWEFDJ.7z
    PhotoshopElements_12_WWEFDJ
    PremiereElements_12_WWEFDJ_win32.7z
    PremiereElements_12_WWEFDJ_win32
    I can not find a 64 bit version of 32-bit or 64-bit version of downloads
    This is information I have
    Best regards
    Erling Magnusson
    2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
        How to get 64 bit version for premiere elements 12  created by A.T.
    Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7162950#7162950>

Maybe you are looking for

  • What does this icon mean and what does it do?

    Hi all! I wonder what does the icon in the bottom middle do: http://bildr.no/view/738173 If it is some sort of an archive function where does the e-mails go then? I can not find them anywhere... Message was edited by: AlexSasha

  • HP Recovery media creation troubles-C​an't run

    Hi, I have a hp pavilion dv6 notebook, operation with windows 7 64bits. I'm trying to create a recovery media with a usb drive, i followed the recovery instructions given by HP support. The creation began and everything was fine, till the step of dev

  • How to create a web app list which is divided by months

    Hi, I'm trying to create a list of calendar events similar to the one on this site 2015 Event Schedule - g20.org but not as complicated, as I don't need any animation, just to list but have the months as section headers. I presume I can start of by c

  • Still learning my new

    hello coming from pc. I have my safari ICON both on my desktop and on my Dock. When I try to move either on off to trash, it takea the whole program? or it tells me I can't re-launch because program is in the trash what can do so I only have one Safa

  • IPhoto will not open even after reload

    I have remove iPhoto and reloaded from disc. Still getting the same error message. I am basically pretty frustrated at this point, any ideas? Interval Since Last Report: 13374 sec Crashes Since Last Report: 8 Per-App Crashes Since Last Report: 8 Anon