How to specify GUI starting position on screen

Hello lads.
I'm trying to figure out how to specify where a GUI begins (the default seems to be the top left hand corner of the screen).
In my GUI program there are many "blocks". Each time one of these blocks is used another small GUI pops up. I would like for the GUI to appear:
A) at least - in the middle of the screen. But
B) hopefully, if possible - at the block that was just accessed.
Can anyone point me in right direction please?
Oh and also, I am aware of the JPopupMenu class. I am not using it.
I would be greatful for any suggestions.
Cheers.

Cheers Darryl.
It was setLocationRelativeTo();

Similar Messages

  • How to get the cursor position from screen in module pool program

    Hi,
    I am doing the module pool program, I have one table control in one screen.
    I have to give functionality to the user that when the user enters first record in the table control and after filling the last field
    when he presses enter the cursor will have to come in the starting field of the second record.
    I know the logic , but i m bit confused.
    Can any body help me to solve this....
    thanks

    Hi,
    Check this code,
    Write it in the PBO
    MODULE SET_CURSOR_WERTKONTRAKT.
    MODULE SET_CURSOR_WERTKONTRAKT OUTPUT.
      PERFORM SET_CURSOR USING 'VBAP-ZWERT'.
    ENDMODULE.                 " SET_CURSOR_WERTKONTRAKT  OUTPUT
    FORM SET_CURSOR USING US_FELDNAME.
      DATA: DA_TFILL LIKE SY-TFILL.
      DESCRIBE TABLE IVBAP LINES DA_TFILL.
    FCODE 'Create Position':
    ==> Cursor to the first free line set to make the new position
    Can be created directly
        IF DA_TFILL EQ 0.
          SET CURSOR FIELD US_FELDNAME LINE 1.   -> set cursor position
        ELSE.
          SET CURSOR FIELD US_FELDNAME LINE 2.
        ENDIF.
    Product proposal actively
    Set ==> cursor in the first row
      IF DPP_ACTIVE   EQ CHARX AND
         XVBAP_UMFANG_OPV IS INITIAL.
    in the 'target volume' if available
        IF KOPGR_MIT_ZMENG CS TVAK-KOPGR.
            SET CURSOR FIELD 'VBAP-ZMENG' LINE 1.
            EXIT.
        ELSE.
    Else in the field 'Order quantity'
          SET CURSOR FIELD 'RV45A-KWMENG' LINE 1.
          EXIT.
        ENDIF.
      ENDIF.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • How to hide  gui buttons in selection screen

    In Selection screen how to hide buttons like back, exit,cancel buttons.
    can any  one help.

    Hi,
    Create a new GUI Status for your program.. put whatever button you require for it..
    In the AT SELECTION-SCREEN OUTPUT event..
    SET pf-status xxx.
    Regards,
    Anand

  • Specify Starting Position in Sender FCC

    Hi Experts Team,
    I wish to specify the starting position of field in sender FCC.
    can i????
    regards,
    kanda

    Hi,
    I think positions we can't identify with FCC statements.  fieldfixedlengths itself system will identify automatically.  If column have any specific character indication we can do easily.  Check it according to your requirement.

  • Cursor position on screen data in module pool programming(urgent)

    Hi all,
    I developed a module pool  program which will save the data after  scanning the barcode data.
    In my program screen 100 is there which contains field  ‘2dbar’. scanned data is comming to 2dbar field.
    we r doing scan 4 times.once for vendor number,once for material no. like this.
    After 1st scan, vendor number will come to field ‘2dbar’.
    Then I developed logic to put comma after each scanned data come to this field ‘2dbar’.
    MODULE put_comma INPUT.
    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    *replace 2dbar with 2dbar2 into 2dbar.
    move 2dbar2 to 2dbar.
    *write 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    *move '' to 2dbar.
    *set cursor field 2dbar offset 5.
    *write
    ENDCASE.
    ENDMODULE.                 " put_comma  INPUT
    By above logic, comma  comes to the starting position of 2dbar after each scan. i.e cursor position is coming to the starting position of screen field ‘2dbar’.
    Now  I need to move the cursor position after the comma position on 2dbar after each scan.
    after 1st scan, 2dbar contains
    vmotorola
    then my logic puts a comma when u put enter on screen 100.
    now 2dbar contains
    vmotorola,
    i should get the cursor position after the comma.but i am getting cursor position before 'v'.so how to move this cursor position  beyond comma after each scan.
    I added set cursor  command but it is not working.plz
    What is the logic, I need to put in PAI  to move the cursor on selection screen.
    Already the logic I have mentioned.  with that logic, I can put comma.now I need to add cursor movement logic  to move the cursoron  on screen field ‘2dbar’.
    Plz reply me as it is urgent.
    Thanks in advance.
    Regards
    pabitra

    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    move 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    len = strlen ( 2dbar ).
    len = len - 1.
    set cursor field 2dbar offset len.
    ENDCASE.
    ENDMODULE. " put_comma INPUT

  • How to control the cursor position in the Table control in Module pool

    Hi,
    Can any body tell me how to change the cursor positon from last field of the first record to the
    first field of the second record , when user presses enter in the last field in the module pool
    programming.
    Thanks

    Hi,
    Please avoid posting duplicate posts.
    Re: how to get the cursor position from screen in module pool program
    Nag

  • How do I get past a black screen on start up. I think it may have overheated.

    My husband closed his MacBook Pro and later piled a bunch of stuff on it. When he opened it he had a black screen. If you turn it off it starts up with a white screen and the thinking wheel spinning and then goes back. If the touchpad it moved the curser is displayed. How do I get past the black screen?

    Try SMC and PRAM resets:
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/ht1379
    Ciao.

  • How do I lock in a reduced screen size, so whenever FF starts, the reduced screen size appears?

    How do I "lock in" a reduced screen size (that I made by dragging the screen edges) so that whenever I start FF the reduced screen size always appears?

    Make sure that you do not start Firefox maximized.
    You can check that in the Properties of the (desktop) shortcut.
    Firefox should reopen with the window size with which it was closed the previous time.

  • Upon start up I get a start up disk full message and to delete files, now I only get a a blue screen on start up. How to I get past the blue screen and how do I delete files?

    Upon start up I get a "start up disk full message, delete files". Now on startup I only get a blue screen. How do I get past the blue screen and how do I delete files.

    That;s really not enough free space... you can use a tools such as OmniDiskSweeper to find out where your large files reside and begin pruning (or copying to an external if they're files that you want to keep).
    One thing is certain - if you're going to continue your current usage you're certainly going to need to install a larger boot drive.
    Clinton

  • How to add a gui status in selection screen

    hi
    experts can u help me plzzzzzzzzzzzzzzzzzzzzzz
    for this

    Hi Ravi,
    Refer
    how to add a gui status in a selection screen?
    gui status in selection screen
    gui status in selection screen
    how to set my own gui status when i use selection-screen
    Reward if it helps
    Regards,
    Santosh

  • How to specify different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position?

    Hello,
    I am trying to provide different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position. I have 2 af:panelSplitter with orientation="horizontal" - One with positionedFromEnd="true" one with positionedFromEnd="false". I want to specify the horizontal collapse and restore icon using Skinning. I want specify different icons based on positionedFromEnd. When I specify icons they are appearing for both splitters. I gave 2 different styleClass to these splitter but it is not taking them in account,
    JSPX Page -
    <af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="false" id="pnlSplitterLeft" collapsed="false" styleClass="panelSplitterLeftClass">
      <f:facet name="first">
      <!-- Content of First Facets -->
      </f:facet>
      <f:facet name="second">
      <af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="true" id="pnlSplitterRight" collapsed="false" styleClass="panelSplitterRighClass">
      <f:facet name="first">
      <!-- Content of First Facets -->
      </f:facet>
      <f:facet name="second">
      <!-- Content of First Facets -->
      </f:facet>
      </af:panelSplitter>
      </f:facet>
    </af:panelSplitter>
    CSS Skinn
    af|panelSplitter::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Open.gif");
    af|panelSplitter::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Close.gif");
    af|panelSplitter.panelSplitterLeftClass::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Open.gif");
    af|panelSplitter.panelSplitterLeftClass::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Left_Close.gif");
    af|panelSplitter.panelSplitterRighClass::horizontal-restore-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Right_Open.gif");
    af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon {
        width: 10px;
        height: 55px ;
        content : url("/skins/AppSkin/Right_Close.gif");
    It is always showing Left_Open.gif and Left_Close.gif for both splitters. But I want different image.
    How to specify different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position?
    - Sujay

    CSS attribute selectors are what you are talking about, but binding the selector with EL is a more-common approach. Using selectors like this require you to ensure browser support.
    af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon [positionedFromEnd=true]

  • HT5093 How do I manually set the start position.

    The 3d program do not support it (Google Sketchup Free).
    Can I open the dae file in another program and set the start position there?

    1) How do I in iBooks Author set the camera position manually.
    The documentation says: "be sure to add a camera to your object. This will be used for the default view in your iBooks Author book."
    default indicate that there are other options in the iBooks Author program.
    If this is not the case:
    2) What is the prefered program for createing 3d model with a start camera position.
    2a) More specific how do I do that in the program.
    Note that is is unlikely that any other forum can answer question 2, since this is compatibility specific issue between a 3d program and iBooks Author.

  • Question: How to draw to an arbitray position on Screen

    How can one draw to an arbitrary position on screen without getting a Graphics object from a JFrame, JDialog, etc...?
    I am needing the ability to create a special kind of popup, like a tooltip, but with a special shape (Like the text spoken by characters in a comic book).

    Hi acalvin1,
    The thing you are drawing will need to be in some kind of container/window/frame, whatever you want to call it. This is due to the way that the swing libraries delegate the painting of top level containers to their peer equivalent on the OS you are using. Once you have this container you can pretty much draw in it what you like.
    To create speach bubbles you would need to create a component that takes care of painting itself via its paint method (really). You need to get the graphcis object for drawing irrespective of the type of shape you want to draw.
    You may want to consider posting to the swing forum as you might get a better response.
    nes

  • I just got my first ipad.  When I turn it on, the screeen briefly flashes on "lock" icon on the screen, then nothing happens and the screen goes black.  how do I get started?????

    I just got my first ipad.  When I turn it on, it briefly shows a start up screen with a "lock" icon then goes black.  how to i get started????

    I resently purchased an ipad and i think i could help. Does it look like a plug and itunes? Thats what came up on mine. Try pluging it into your laptop and go on itunes. They say the new ipad with ios5, you dont need your computer, then i cant help you there. But go to an apple store they are very helpful. They helped me recently and they are very nice. They could help anyone, from old people, to youngsters like myself. I hope i helped you. I tried my best :)......keep in mind, im only 12
    P.s. i purchased my ipad before ios 5

  • HT3224 I am new to Mac and started transferring data from my PC to my new Macbook Pro.  Connection was lost once I started and now my Pro is stuck on the 'Transferring Information' screen.  How do I get out of this screen to attempt the connection again?

    II am new to Mac and was trying to transfer data from my PC to my new Macbook Pro.  The connection was lost however and now my Pro is stuck on the 'Transferring you nformation' screen.  How do I get out of this screen so I can attempt the connection again?  Is it safe to force shut down of my Mac and will it still prompt me through all the setup process again?

    Welcome to Apple Support Communities
    If your Mac and PC are connected by Ethernet, unplug and plug that cable again. If not, you have to turn off the MacBook by holding the Power button.
    In the next startup, try to transfer your files again. It's important not to interrupt the transfer process, because in most cases, you will stop it and you won't be able to resume it

Maybe you are looking for