How can I get two windows to communicate?

I am trying to get two windows to communicate.
Window a opens window b.
In window b, the user makes selections which are saved to a series of variables (3 strings and an int).
When window b disposes, I want these variables to be passed back to window a so that I can load them
into text fields.
If anyone has any advise it would be greatly appreciated.
Joseph

If A opens B then just pass a reference to B or do a getParent, then use a setter in A to set the values you want.

Similar Messages

  • URGENT HELP IS NEEDED!!!!!! How can i get two applet to communicate via a j

    I am writing a program that should allow me to communicate between applet. The applet is loaded via the a web site, but i can't get that to work, so i am using appletviewer instead.
    I want to establish a connection between the applets thus allowing to chat.
    So far i can open both applets up, (using localhost), but the applet isn't able to establish the connection and i have to turn off one of the applet window, before i get a connection, but it won't do anything after that.
    I know it is a security problem, but how can i fix this problem.
    Please can you help, i am in difficult position
    Junaid

    I think what u are trying to do is some peer-to-peer communication using applets.
    The thing is the applet knows ( via getCodeBase and getDocumentBase methods) from where it was launched. It has no knowledge of where other applets from the same server may be residing.
    It looks to me that you will need to do some server-side coding as well..
    On possible solution would be to
    A) Install and run a Tomcat Server
    B) Tomcat can be used as a webserver in limited way .. (refer it documentation ) by defaul it runs on port 8080
    C) So you can say http://localhost:8080/
    D) Use this launch the applets
    E) Using HTTP Tunneling ( Read about it in Servlets ) you can set up Tomcat to broker messages between the 2 applets
    Also from you question it appear that both the applets try to hook on the same port, now on one computer (localhost) one port can be used by one socket . Try to get them to use different ports then the appletviewer problems should solve it self.
    To use different ports without making 2 different applets , simeply pass the port as a PARAM to the applet

  • How can I get two missing numbers on a iTunes card

    How can I get two missing numbers on a iTunes card

    "Get help",just below the form space where I entered the code. Once I clicked "Get Help", it added another line to the form where I could enter  THE NUMBER ON THE BOTTOM LEFT CORNER on the back of the card. I entered as much of the I scratch-off code I could read, along with the serial number.

  • How can I get a Windows Vista 32 bit version of Photoshop, please?

    How can I get a Windows Vista 32 bit version of Photoshop, please?

    Hi Kevinhannan,
    No current Photoshop supports this configuration.
    Photoshop CS5 was the last version of Photoshop to support Windows Vista.
    Photoshop Elements 12 was the last version of Photoshop Elements to support Vista as well.
    We no longer offer Photoshop CS5 or Elements 12.
    You might look at Amazon to see if you can get either product listed above. Just be careful when purchasing, make sure you know who you're buying from!
    Regards,
    Pete

  • How can I get two hand drawn images to line up?

    How can I get these two images to line up? I am stumped.....I have used auto-align, scale, etc.....but I get one side right then other side not aligned.

    You are dealing here with a difference in image size between the top and bottom sections and perhaps a difference in verticality.
    Consider the bottom units. The left side should shift right and the right side should shift left in order to align.
    Your next move would be the adjust the size of one of the layers by using Edit > Transform > Scale. Hold down the Option key to maintain proportion.

  • How can I get a Windows 7 ISO for my OEM License?

    Hi all!
    I was hoping to download a Windows 7 Home Premium 64 bit ISO from Microsoft, but I am having difficulty. Since I bought my laptop from HP with Windows preinstalled, the Microsoft site will not allow me to obtain an ISO. It requires me to contact my manufacturer instead.
    How can I obtain a Windows ISO from HP?
    Thanks
    Rex
    This question was solved.
    View Solution.

    Order recovery USB:
    http://support.hp.com/us-en/product/HP-Pavilion-dv7-6195us-Entertainment-Notebook-PC/5082216/model/5...
    Contact HP directly for recovery USB:
    https://support.hp.com/us-en/contact-hp/product/HP-Pavilion-dv7-6100-Entertainment-Notebook-PC-serie...
    Or from here:
    http://www.computersurgeons.com/p-21338-recovery-kit-658854-001-for-hp-pavilion-entertainment-notebo...
    Either way it'll cost you $30 or so.
    Regards
    Visruth
    ++Please click KUDOS / White thumb to say thanks
    ++Please click ACCEPT AS SOLUTION to help others, find this solution faster
    **I'm a Volunteer, I do not work for HP**

  • How can I view two windows side by side?

    I have two windows open in two different tabs, but I want to view them side by side on the screen. Can I do this in Firefox? How?

    You could open a second Firefox window, adjust the sizes of the two windows and align them side by side. (Firefox button > New Tab > New Window '''''OR''''' CTRL+N '''''OR''''' File > New Tab > New Window if using the Menu Bar)
    You could install one of the Add-ons to view multiple tabs at the same time:
    *https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/
    *https://addons.mozilla.org/en-US/firefox/addon/tile-view/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I open two windows from one submit?

    Is there a way to open two browser windows from one click of a button to submit a form? I have a button on a screen that does some processing of the data and then generates a PDF file with the output. I would also like it to run a report and show the output of that in a separate window. I realize that using regular HTML with a target of "_blank" on the form, you can have the results show in a new window, but how can I launch a second window from a single button click, if possible?
    Thanks!

    It can be possible using two different popUps instead windows. Onclick on the button just make vissible true of those two popup in the event method, before making visible true, do the business operation to show on the popups. So simple :)
    Note: Popup has modal=false attribute
    Edited by: man_ish on Jan 12, 2010 10:13 AM

  • How can I get my Windows Partition to be a startup disk?

    I have Tiger 10.4.11, I had boot camp, Running Vista, Just fine for months.
    I recently had a problem, within vista which caused a problem with the hard drive/master boot record which wouldn't allow Vista to boot anymore and actually reported "missing operating system".
    Previously if I did nothing, after powering on my MacBook, it would default to the Windows partition and start it up (Vista).
    Of course I could change this from the "startup disk" applet from within Tiger or I could use boot camp from within Vista.
    I have since been able to fix my Vista related startup issue, however at present the MacBook is booting into Tiger by default.
    I can HOLD the OPTION key and select either OS.
    From the "startup disk" applet within Tiger, it no longer shows "Windows" as a startup option which seems to be an indicator of a problem with Tiger of how it sees the hard drive and/or partition.
    I ran disk utility, no change.
    How can I make Windows appear as an option in the "startup disk" applet within Tiger?
    I can use Boot Camp within Vista, to select the "Windows" disk to restart from, and that works, but I would like to restore full functionality to Tiger.
    Thank you and please advise,
    Joe

    Hello and Welcome to Apple Discussions ...
    You will receive better exposure to your query in the BootCamp forum:
    http://discussions.apple.com/category.jspa?categoryID=237
    Carolyn

  • How can I get two column selection list in my html form

    I required to have two column selection list in my jsp page to show name and description of a product. How can i achieve this functionality or is there any other alternative to do so.

    If i understand correctly: you can't actually create two columns in a list because it can only hold one value. The only way to achieve what you want is by concatenating the two values you want to display and put this as the value of the listbox.

  • How can I get two cameras to aquire at the same time rather than one after the other

    I've got (2) PCI-1428 cards, Two Uniq Vision cameras with power supplies, cameralink cables, and IMAQ-D6804 cables. Both cameras are being triggered by the same switch, but they are not grabbing images at the same time. Right now it is triggering one camera as desired, but the other doesn't aquire until after the time-sensitive event. On the next test, the two camera will trade these roles. I am using 2 cards, so they should acquire at the same time. How do I change it so that they grab images at the same time? Thank you for your help.
                                                      ​            Deater

    Hi Deater,
    Thank  you for your post.  Triggering from two cameras at the same time may be a little trickey, but it can be done.  There are multiple ways to tackle this problem.  If you have a RTSI cable, you can RTSI the two PCI boards together internally to lock them in HW.  You should also be able to use the triggering line on each board.
    One of the best methods for triggering multiple boards is called GenLocking.  The following Developer Zone page describes GenLocking more fully and has several examples to help you out: http://zone.ni.com/devzone/conceptd.nsf/webmain/a3​87b5c0ac6f6f4e86256c87005fcddf.
    The "HL Grab with two boards.vi" shipping example is also a good example of the code needed to trigger two individual boards in LV.  I found a similar post that may be of some help as well: http://forums.ni.com/ni/board/message?board.id=230​&message.id=2691&requireLogin=False
    Hope this helps!
    Thanks,
    Scott Savage
    National Instruments
    Applications Engineering
    www.ni.com/support

  • How can I get my window to fit the screen?  It is too big.

    All of a sudden a few days ago my window on my MacBook pro expanded and now does not fit all at one time on the screen.  I must have done something but do not know what.  I hope someone can help me to get the window to fill the screen so I don't have to move the window back and forth to see everything.  Thanks, Quinner

    Turn off Zoom from the Universal Access and Keyboard & Mouse panes of System Preferences.
    (107642)

  • How can I open two windows in contacts

    I am using MacBook Pro, 2.3 GHz Intel Core i5, 4GB 1333 MH DDR3, OSX Yosemite Version 10.10.1
    In contacts I would like to know if there is a way to open two windows side by side so I can edit my group lists with my all contacts?

    Thank you for your reply.  I am trying to edit my Christmas Card List (group) with my All Contacts List.  If I had a window side by side with each group in separate windows I could just compare the lists.  The only other way I can think to do this is open my contacts on another device and have different group lists display on each device.

  • How can I get a Windows application to work?

    I need to use an application which is only available in Windows or OS 9, - I have tried to get this computer to open OS 9, but it refuses.
    Is there some way to get the Windows version of the app. to open and work in OS 10.4.9?
    Thanks in anticipation of your help.

    Try CrossOver by CodeWeavers. While the normal Windows on Mac solutions (Boot Camp and Parallels Desktop) require a full version of Windows, this will allow some Windows programs to run.
    Download the trial and if it works, buy it. (There is a discount ofr education.)

  • How can I get The Windows XP Recovery CD?

    I bought used thinkpad X60s, and I can´t access it (no passwords etc.) There is no recovery medias either. Where can I get XP media to reinstall?

    you can get the discs from Lenovo customer support for a nominal charge in your country of residence. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for