How to  pass data between JDialog and its parent window ?

Hi,
I am new to swing. I want to know how pass data between a JDialog and its parent window.
If you have any information please reply with example code.
Thank You

hi Encephalopathic ,
I was looking for something like as it was given in the link provided by you.
Thank you for reply It really helped me.

Similar Messages

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

  • SAP threading-how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Passing Data Between Programs
    [http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

  • How to pass data between two internal sessions using ABAP memory?

    Hi,
    How to pass data between two internal sessions using ABAP memory?
    It would be fine if you could explain with an example.
    And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
    Thanks.

    Hi ,
      check the example.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
    PROGRAM SAPMZTS1.
    DATA TEXT1(10) VALUE 'Exporting'.
    DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    DO 5 TIMES.
      ITAB-BOOKID = 100 + SY-INDEX.
      APPEND ITAB.
    ENDDO.
    EXPORT TEXT1
           TEXT2 FROM 'Literal'
      TO MEMORY ID 'text'.
    EXPORT ITAB
      TO MEMORY ID 'table'.
    SUBMIT SAPMZTS2 AND RETURN.
    SUBMIT SAPMZTS3.
    The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
    Example for SAPMZTS2:
    PROGRAM SAPMZTS2.
    DATA: TEXT1(10),
          TEXT3 LIKE TEXT1 VALUE 'Initial'.
    IMPORT TEXT3 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT3.
    IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT1.
    Example for SAPMZTS3:
    PROGRAM SAPMZTS3.
    DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
    LOOP AT JTAB.
      WRITE / JTAB-BOOKID.
    ENDLOOP.
    The output is displayed on two successive screens. It looks like this:
    and
    The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
    The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
    Pls. reward if useful.....

  • How to sinck data between  production and R12 instance

    Hi,
    I am working on Oracle Apps up-gradation project.
    Now I have upgrade 11.5.7 to R12 (12.0.4) successfully. I started up-gradation task with 1 May of production data (backup) on new machine.
    Client wants to live R12 from 1/August/2009.
    Please suggest how to sinck data between production and R12 instance.
    Thanks
    Anup

    Hi,
    It is not possible to do what you propose (sync data from an 11.5.7 system to a 12.0.4 system). You will need to re-run the upgrade against the August 1 data, following your original upgrade procedures.
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • Please: How to sinchronize "contacts" between pc and ipad in windows 8?

    Please: How to sinchronize "contacts" between pc and ipad in windows 8?
    Thank you.
    Ramón Mª

    http://support.apple.com/kb/HT1296
    Regards.

  • How to pass data between components?

    Hi everyone,
    How can I pass data between components? If possible, please
    give me sample code. Thanks.
    Note: I am using Flex 3.
    May

    There are lots of examples in the doc. You can start here:
    http://livedocs.adobe.com/flex/3/html/mxmlcomponents_advanced_1.html
    Stephen

  • How To Pass Data Between A Main Report and a Subreport

    Hello,
      I'm working with Crystal Reports Professional XI. 
      I have a main report with two date parameters: BeginDate of Date type and EndDate of Data type.  The main report has no details being printed instead it's grouped by a formula field and displays a summary count at the group footer.  I have  a subreport that is not linkable to the main report.  The subreport is grouped differently.  It has no detail records being printed and displays a summary count at the group footer as well.  The two reports are using the same tables with the same linking relationship.
       I created the same two date parameters in the subreport but this isn't right because when I run the report then I get four Date prompts: BeginDate and EndDate parameter from the main report and the BeginDate and EndDate parameter from the subreport.
      I'm not dong something right here.  What do I need to change in the reports so that l have the same record selecton being passed from the main report to the subreport record selection based on the BeginDate parameter and the End Date parameter from the main report?  Right now, the subreport is selecting all the records in the tables specified.
      Have a great day.  Any feedback would be greatly appreciated.
    Thanks,
    Ting

    Hi Jason,
       Thanks for replying to my posting.  It's been awhile since I've worked on Crystal Reports so I'm getting reacquainted with sub-reports again.  
        By linking the main report to the subreport by the BeginDate and BeginEnd parameters, will the date parameters be passed from the main report to the record selection for the subreport?  
       Also by doing your approach when the user is prompted to run the report, will it display on the popup window four date parameters: the BeginDate and EndDate from the main report and underneath that the BeginDate and EndDate from the sub report?  If so I'm trying to avoid that because it would be the same date range that I'm wanting to use for the main report and the subreport.  
        I hope that made sense.
    Thanks,
    Ting

  • Pass data between AS and Lingo

    Hi
    We have an Arabic educational application in Director 11.5,  published originally asprojector for desktop use. Since Director don't support “right to left” languages, the application uses an ActivX component to call external encoded html and load it into a textarea container, in this way the Arabic language can be written and redden.
    since ActiveX is not sockwave-safe and cannot be used , im using swf as an input textarea. it  seems ok ( i dont read Arabic so i cant tell if its correct), the important thing for this stage is that i  can write  text and no errors comes from the shockwave player.
    The main problem:
    the words been typed in the swf ,  should be sent  to the the Lingo script in Director, for example there is a "speed typing test " that check if all the typed words are correct.
    in the original the application uses:
    sprite(120).navigate(the moviePath & "assets\t.html")
    to load the html into the  textarea and uses and:
    on hideQuitDialog me
      if the frame  > 45 then
        mySprite.locV = 485
        mySprite.puppet = 0
        mySprite.navigate("Javascript: focusText()")
      end if
    end
    to get some javascript from the html.
    my question is how to pass the swf input data to Lingo?  what code should i use, either in Flash AC3 or in Lingo in Director to make this happand?
    appreciate you time
    Tx
    Shay

    Hi,
    The problem was that when populating and reading the custom controller, I had to add GLOBAL. in front of the custom controller name. Like this: 'GLOBAL.ZKBT116QH_SRVQ/CuCoOrders'
    Thank you,
    Andra.

  • How to pass parameters between main and sub vi during parallel execution using the VI server technique?

    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Message Edited by cascao on 08-16-2005 08:42 PM
    Message Edited by cascao on 08-16-2005 08:42 PM
    Attachments:
    VI_Server_technique.vi ‏32 KB
    SubVI_1.vi ‏19 KB

    cascao wrote:
    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.
    -Franz
    Attachments:
    VI Server.zip ‏26 KB

  • How to pass data between views using Flex for mobile?

    Hi,
      In my 1st view, I have set of images. Each image represents a product category. When I click on an image, it has to show my 2nd view which is a list. This should show all the products linked to this category.
    I saw few examples where the 1st view is a list. Select an item in a list shows the details in the next view.
    But what I need is, I need to know which image is clicked in my 1st view (ie) Home page. This id needs to be passed to my 2nd view to retrieve the data for the clicked image (clicked product category).
    Can anyone help me in this?

    Chellaa2011,
      If I understand you correctly, you can pass data to the next view by passing the second parameter to the pushView method. 
      check out: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/ViewNa vigator.html#pushView()
      I've written similar apps in the past and found that a singleton class alleviates some of these issues.  If you use a singleton to track currently selections all your views can access the same data without having to pass and return data from each other.
    Hope this helps,
    KLee

  • How to exchanging data between SAP and P3?

    could use BAPI directly between SAP and P3? And if we use XI as middleware, which protocols or methods should we use?
    any answer should be appreciated.

    Hi,
    U havent mentioned what exactly ur P3 system is.
    Considering it to be Primavera P3 system, the integration could not be done directly using a BAPI since the structure of Projects (as well as the rules to define the projects) are different in SAP and Primavera P3.
    Thats y XI is required. U have to use Idoc/RFC interfaces. Have a look about what Primavera wants to say about this integration
    http://www.primavera.com/newsroom/primavera_sap_051007.asp
    Regards,
    Prateek

  • How to validate date between Header and Detail Block..

    Hi All,
    I was trying to find a way where, suppose I enter 'from date' and 'to date' in the header block.then in detail block all 'from dates' and 'to dates' should be restricted between the dates entered in the header block.
    Thank you

    Or U Can Simply set in the child item lowest / highest Allowed Value
    Invoke Property pallete for child date item and set the following
    lowest Allowed Value :header.from_date (must be prefix with :)
    Highest Allowed Value :header.to_date
    siju.koiply

  • How to syncronize data between resource and IdM?

    I created a form (assign to proxy administrator) for reconciliation, and it gets executed when I imported new user into IdM through full reconciliation. In this way I can assign email of user to waveset.email.
    But later when the email gets updated in resource directly, how can I propagate the new value to IdM (without activeSync). By running a full reconciliation again doesn't seem to re-run the proxy administrator's form. I always thought full reconciliation would do the trick, but only now I realize it does not work at all !!?
    What should I do then to synchronize the data?

    Recon was not really designed to automatically synchronize attributes. Typically, this is implemented via ActiveSync. With that said, there is an option in Recon to "Attribute-Level Reconciliation". This allows you to provide a list of resource attributes to watch and if there is a change, Recon calls a workflow, where you can execute any changes you would like.
    I believe this workflow is called "Audit Native Change To Account Attributes". Look at wfrecon.xml located in /sample.
    Edited by: R1100SLA on Dec 21, 2007 12:12 AM

  • Pass Data between flex and livecycle

    Hi ,
    I am unable to downlaod a file from the server using flex's
    filereference.download api .
    Attached simple program to pass/upload a file to livecycle
    server and convert it to a pdf. The livecycle process returns the
    file.
    My flex application downloads the file however, the file
    content is just 1 kb. The content seems to be the filepath in the
    server (e.g. c:\tmp\TestDoc[3].pdf).
    The livecycle process takes inDoc and fileName as parameter
    and returns outDoc and fileName.
    any help would be greatly appreciated.
    Please find attached sourceCode.

    Hi,
    The problem was that when populating and reading the custom controller, I had to add GLOBAL. in front of the custom controller name. Like this: 'GLOBAL.ZKBT116QH_SRVQ/CuCoOrders'
    Thank you,
    Andra.

Maybe you are looking for

  • How do I restore the cloned drive ....

    Good Morning, I was wondering if you can help me. I made a copy of my hd with super duper on an external hd . Now how can I restore the drive to the macbook drive? Thanks in advance.

  • Auto-enter text in linked email doc?

    Hi- Apologies for my lack of HTML prowess... I'm creating a website using DW8, with a page that has a number of different email links to various government officials. Because the messages to each of the recipients is different, I was hoping to be abl

  • Thread count in a distributed service

    Hi,      i needed some information on the thread-count attribute in a distributed service. i would like to know how do we decide on the thread count. would increasing the thread count in the tangosol-coherence.xml increase the performance of tangosol

  • Airport Extreme's support for streaming video NOT reliable for RealPlayer

    AIRPORT EXTREME BASE STATIONS DO NOT RELIABLY PROVIDE STREAMING SUPPORT USING NORMAL TRANSPORTS FOR REALPLAYER. Based on a problem I've had for a long time and information provided in RealPlayer OnLine Help, it appears that the Airport Extreme Base S

  • Can Pages open VERY old files?

    I'm going to buy an iMac early next year, my first Mac in eight years. I have ClarisWorks 2.0 files I'd love to resurrect and tweak. Can I do that with Pages, or are these files too old and I'm SOL?