How do I get a pop-up JDialog to return a result back to the parent frame?

I have a button in a frame that opens up a JDialog with more buttons. Depending on the button pressed, the JDialog calculates an array and then closes the dialog. I'd like the results from the JDialog to be passed back to the parent frame. Is there any built in JDialog function allowing a passback upon closing to the parent frame or anything like that?
If not, what's the best way to go about it?

Is this a modal dialog? Then setVisible(true) blocks. The caller can retrieve the result after that call:
dlg.setVisible(true);
//now get result;

Similar Messages

  • How can I get my POP account showing in the inbox it's supposed to show in?

    Hi-Until a couple of weeks ago all mail received from my IMAP and POP accounts would show up in the correct mailboxes in my Mail inbox list. (Only problem then was that sent mail would never show up in the sent mail folder--always stayed in the inbox.)
    Now a new problem has happened----unless I go directly to my charter cable account (P0P account) to retrieve any mail sent to that particular address, the mail goes unnoticed by Mail on my MAC and nothing shows up in the inbox. But--- If I do a test to myself , sending an email to the POP address from my IMAP account from my MAcMAil, my IMAP account will show the email in the inbox of the IMAP account I sent it from as if I'd mailed it to that account. How can I get my POP account showing in the Inbox? And, any suggestions for a fix to getting the "sent" mail to show in the "sent" folder would also be appreciated.
    Thanks!

    Control click in the tool bar area and customize.

  • How can i get my POP email pushed to my iphone5 instantly (not every 15 minutes) like my old blackberry did?

    how can i get my POP email pushed to my iphone5 instantly (not every 15 minutes) like my old blackberry did?

    You can't, RIM uses a proprietary mail server (in Canada) that pushes mail to BB devices. You will need to get an iCloud, Yahoo, Gmail Exchange, or Exchange mail account to pust mail to your iPhone.

  • How do I get my emails to download both on my iMac and iPhone the same?

    I have recently got an iPhone 5.  I also use Mail on my iMac computer.  How do I get my emails to download both on my iMac and iPhone, the same?  (If I currently fetch my emails on the iPhone, then they don't then appear later when I want them on my iMac and I need to forward them to myself again - crazy!) And can I also receive sent emails on both too?  I need identical email lists on both.  Thank you, in anticipation!

    If you are using POP email accounts, this is how they are designed to work.  POP mail gets offloaded from the mail server onto the device used to access it, so it will not show up on another client later as it literally no longer is stored on the server.  It may be possible for you to configure your POP mail account to keep messages on the server, so they will always appear every time you access your mail (from any device).  The downside of this is that most POP accounts have limited online storage, and the messages will never disappear until you manually delete them, so if you are not very diligent at cleaning out read mail, you run the risk of your account filling up.
    Really, for what you want, you should switch to an IMAP mail service.  IMAP mail is always stored on the server, not on any one client/device, so it is always accessible from any client on any device.  Given that, most IMAP accounts have much larger online storage than most POP accounts, since the mail is intended to stay on the server.
    Check with your email provider and see if you can switch your account(s) over to IMAP.  If not, there are a number of free IMAP providers, such as gmail from google.

  • HT5622 how do we get all emails on to both our pc and iphone ,at the moment it is either / or ?

    how do we get all emails on to both our pc and iphone ,at the moment it is either/or ?

    DO you have an IMAP mail account, or is it POP?
    POP is designed to be accessed from one computer.
    IMAP is designed to o what you want.

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How do I get music onto a phone that hasn't been backed up to new computer without losing anything??

    I just found out my incredibly stubborn teenager's iphone hasn't been backed up at all since last spring. Her old 3gs was previously synced with my computer, but I thought she was syncing her 4 with her own macbook - evidently not. It hasn't even been backed up to icloud in months because she has too much data and not enough space. She refuses to remove anything from the backup cue even though nothing is backing up now. She usually just buys her music from itunes with the phone, but recently she purchased a cd since she wanted all the songs on it. She asked me to put the songs on her phone. Well I've got them in itunes, no problem, but I can't get them on her phone because it says it is synced to another computer. The only computer it could have been synced to is my old computer which is no more. How can I get these songs on her iphone? If I back up her phone in itunes and then restore from the backup I'm afraid it will lose something and she will freak out. I mean the world will end if she loses a single text message from last year. Can it be done? And if it can, I need step by step, idiot-proof instructions so I don't mess anything up. My husband says if she will get it to back up to icloud, it will automatically sync the songs from her laptop? Is that right? Or does it still need to be synced to itunes on that computer?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek

  • How do I get my Sony ebook Reader to show up ("be recognized") in the top left corner??

    How do I get my Sony ebook reader to show up ("be recognized") in the top left corner of the window.  It never shows up and I cannot transfer books from my Mac computer to ADE.  I am using Sony Reader Library but it is developing problems!!  Can anyone assist??

    No solution yet.  One would think that Adobe would recognize that several complaints  have been reported on this problem.  Obviously, nobody knows how to fix it!!  Sorry I can't be helpful!!

  • HT201318 how can i get a refund for my icloud upgrade? i am within the 15 days

    how can i get a refund for my icloud upgrade? i am within the 15 days

    If in the US, follow the link below -
    https://discussions.apple.com/message/16968425#16968425
    it gives the USA number - if you don't live there you will have to find an equivalent number from the 'Contact Us' link at bottom right of this page.

  • How do I get Elements to occupy full screen on my macbook pro? - the docking station remains visible and I don't want to have the dock in hide mode?

    How do I get Elements to occupy full screen on my macbook pro? - the docking station remains visible and I don't want to have the dock in hide mode?

    Unfortunately, there is no answer to this problem via this link. It may be that this is simply how the software actually works. It is a design fault in Adobe Photoshop Elements. It is possible to temporarily hide the dock within 'system preferences'. Oh well. Someone may know better.... I hope!

  • I have a new computer and have all my music is on an external hard drive.  I have the external hard drive connected to my computer.  How do I get my music that is on my ipod to go to the itunes on the new computer.

    I have a new computer and have all my music is on an external hard drive.  I have the external hard drive connected to my computer.  How do I get my music that is on my ipod to go to the itunes on the new computer.

    What error message are you getting when you try to launch iTunes? (Precise text, please.)

  • Firefox is trying to update my 8.0 version to 9.0.1. I'm not ready to do so because the Norton Toolbar is not yet compatable with the new Firefox release. How do I get firefox to stop trying to update every time I open the application?

    Question
    Firefox is trying to update my 8.0 version to 9.0.1. I'm not ready to do so because the Norton Toolbar is not yet compatable with the new Firefox release. How do I get firefox to stop trying to update every time I open the application?

    Swarnava wrote: '''''Firefox 9 is Compatible with Norton 2011, 2012, 360 v5'''''.
    This reads backwards, It is the other way as "Norton update is compatible with Firefox 9".

  • How do I get a 0 to display when a count = 0 (zero)? (The cell is blank)...

    (Running Business Objects Release 2 (Web-I), No other reporting modules)
    How do I get a 0 to display when a count = 0 (zero)? (The cell is blank)...
    In my reports, I count the number of tests of one of our products and another count on the number of failures.  I then use a simple formula to give me the defect rate percentage (DR%)
    The universe objects used in the calculation are:
    Assembly Number (dimension)
    Human Sn (dimension)
    Test Code Description (dimension)
    I created a variable (called [Count Assys]) that counts the number of Assemblies Tested:
    Formula: =Count([Assembly Number];All)
    Another variable (called [Failed Count]) counts the number of failed tests:
    Formula: =Count([Test Code Description];All) Where ([Test Code Description] <> "FUNCTIONAL TESTS PASSED")
    NOTE: There is a "not equal to sign" between [Test Code Description] and "FUNCTIONAL..." above, but the forum is blanking it when I preview the message.  Not a big deal, but it may be important for someone looking to help...
    I then have a third variable called [DR%] that divides [Failed Count] into the number of [Count Assys], which yields a number formatted as a percentage.
    Formula: =[Failed Count]/[Count Assys]
    The above works great! 
    The problem is: when I have a zero defect count (everything passes), the cell is blank, so the percentage variable remains blank.  I want a zero (0) to appear if nothing failed so the percentage appears as 0%
    I've searched this forum completely and have tried several Properties changes and different variable strings (like =If([Failed Count]<1,0) and the cell stays blank and cannot come up with an answer.
    This one seems simple to me, but everything I've tried has yielded zero <smile> results.
    Thanks,
    Charles
    Edited by: Charles Norman on Dec 9, 2008 12:44 PM
    Edited by: Charles Norman on Dec 9, 2008 12:47 PM

    Hi Charles,
    Use [Dr%] Variable formula as =if(IsNull([Dr%]);0;[DR%])
    Here IsNull returns the Boolean value of variable [Dr%] if its true then inserts 0 else the percentage values of failed tests based on the  total number of assembly tests performed.
    I Hope this is what you want to achieve....
    Thanks....
    Pratik

  • How do you get your acct in a new computer if you already reached the 5 computer limit. I don't have 5 computers?!

    How do you get your acct in a new computer if you already reached the 5 computer limit. I don't have 5 computers?

    Carmen,
    If possible, deauthorize any computers you still have physical access to that you know you had previously authorized to play your iTunes purchases.  Otherwise, you can always use the Deauthorize All option described in this article.
    http://support.apple.com/kb/ht1420
    B-rock

  • How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    Hi Rave,
    InDesign cc couldn't open the script, I get an error message that it is not a supported file type.  I tried this first before using the "place multipage pdf" in my InDesign document.  The script which comes with InDesign cc works, but places the pages outside of the document.  That's what I'm trying to figure out how to do.  I had no trouble doing this in PageMaker 15 years ago.  I don't know why it doesn't work on my computer??
    Thanks,
    Yerbamansa

Maybe you are looking for