JFileChooser blocks all JFrames

I believe something like this was asked before already, but I could not find a satisfactory solution.
Situation:
I have X JFrames open. Each frame has a "Browse" button and a "New Window" button, and some content like an image or text. Clicking "Browse" opens a new JFileChooser, and "New Window" opens a new JFrame like all the others.
Problem:
Whenever I click "Browse" in one of the JFrames, I cannot interact with ANY JFrame until the JFileChooser is closed. Clicking buttons has no effect, and no ActionEvents are delivered to either parent window or other windows. Similarly, if the program cannot open the file chosen it displays an error dialog which behaves in exactly the same way, blocking all windows and not just the parent window like would be logical and acceptable.
Failed solution:
In the beginning of the actionPerformed method I start a new thread to actually handle the ActionEvent. I have verified that the actionPerformed method finishes before the JFileChooser is closed, so I know the opening of the filechooser is not blocking the event dispatching thread. I also ran the SwingUtilities check to see whether the JFileChooser opening was running in the event dispatching thread and the result was false.
As far as I can see everything should be ok, but still all my JFrames remain blocked if any of them opens up a JFileChooser or a message window.
Can anyone help?

The dialog created by JFileChooser.showOpenDialog() is made modal
on purpose, so that the return value can be retrieved in a single
threaded flow without having to set listeners etc.
You can embed a JFileChooser in your own JDialog and not make it
modal if you want to. Add a PropertyChangeListener to catch the
APPROVE_SELECTION and CANCEL_SELECTION events, or override
the approveSelection() and cancelSelection() methods.
Leif Samuelsson
Java Swing Team
Sun Microsystems, Inc.

Similar Messages

  • F110 Blocking all Invoices on a Vendor due to one Un-released PO.

    Hi All,
    We are implementing Vendor Downpayment functionality. I have done all the configuration and we did not activate the business object LOG_MMFI_P2P. We are just using the conventional Vendor Downpayment functionality. We get POs created from SRM. I am getting an error message when I am trying to run Payment run for a vendor for which I have created multiple PO's. Few PO's have Down Payment requests and few do not have. For one PO I created an invoice twice the amount of PO amount, so it went on unreleased status in SRM. Then when I ran the Payment run F110 for that vendor, the payment run is blocking all the other Invoices as well even though they are for different PO's.
    Here is what I did
    1) Created a PO for $100 from SRM
    2) Created a Down Payment request of 50$ for that PO in F-47 and did not process the down payment. Now I processed MIGO for 100$, then created an invocie for 100$. Now i have created another invoice for $100 and posted that invoice. It went on payment block and i released the Payment block for that invoice in MRBR. Since the invoice amount is greater than PO amount in SRM the PO went on un released status and same in SAP as well.
    3) Parallely I have created few other PO's and Invoices for the same vendor without any down payment requests.
    4) Now when I ran F110 for this vendor, due to the unrelased status of one single PO, all other invoices are getting blocked in F110 run. I am not sure why is this happening, any help would be greatly appreciated.
    The errors I am getting are
    Purchasing document XXXX not yet released
    Purchase order XXXXX (assigned to an account) not permitted
    Information re. vendor XXXX/ paying company code XXX...
    Message no. ME390
    Message no. FZ356
    Thanks,
    Uday

    Hi Ramesh,
    Strange error..
    anyways, you have option in Payment Tab to Individual Payment. This will consider each individual posting a separate payment.
    Thanks,
    Deepanshu

  • How can I get Verizon to block all outgoing messages on my email?

    My email was apparently hacked, it is the main account that I have used for the past seven years and all of my bill notifications and important things come to this address.  I have changed the password repeatedly, run several scans on my main computer, laptop, kindle fire, and cell phone (every device I access the email on) using Norton and Norton Power Eraser on the computers.  Nothing showing up.  
    I chatted with support just now asking them to block all outgoing email and they said it isn't possible and I find that impossible to believe.  I am seeing all kinds of messages here saying that people are being blocked but I can't add an email address to that list?  I need to keep it active for inbound email for a month or so just to make sure that I haven't missed any bill notices or other important stuff.  Any ideas?
    Thanks!

    Pretty hard to do without shutting down the account.
    Assuming you have properlly changed your password, and checked your PC and other devices for viruses/trojatns/etc. Then the person using your email is probably NOT even using Verizon.  \
    Unfortunately the basic SMTP protocol is totally different then most people think.  Who you say you are is not a protected value and you can say you are anyone, yes verizon's servers when initially accepting input do check, but that is about it.  And the displayed sender and addresses in the smtp protocol do not have to match any text in the mail. that you see.
    Typical smtp conversation
    EHLO
    a bunch of auth commands
    MAIL and whoever i claim to be
    RCPT
    [email protected]
    [email protected]
    DATA
    this is what most people is the email and its headers, but can really be anything.
    FROM:  SOMEone
    TO:  you and everyone else they can think of

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    How can I block all other mail account just to only use the exchange mailbox of our company? This is to prevent the user to setup his on company iPhone.

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • How do i remove the airplay option from the screen saver on my apple tv.  Its blocking all my pictures

    The Airplay Screen saver option telling me to choose a wi fi and choose this apple tv keeps poping up on my apple tv when it goes on screen saver mode.  It blocks all of my photos showing on my screen saver.  Can anyone help me to remove this

    Welcome to the Apple community.
    Assuming that both devices are connected to the same network and that airplay is not turned off in your Apple TV settings, then you should be able to see the airplay icon when playing content on your iPad, by tapping the screen to reveal the playback control bar.
    If you do not see the airplay icon when you do this, you might try restarting the iPad, the Apple TV and your router.

  • Do you have an option for block all incoming message and request EXCEPTED messages from my contacts?

    Please help!!To whom it may concernDear Madam/Sir who works for Skype & Microsoft  Dear all who can really help,  Do you have an option for block all incoming message and request EXCEPTED messages from my contacts? or Do you have any solution to solve my problem from begin to now in present time?  Even though, I set the Privacy settings: - Allow calls from... "people in my Contact list only"- Automatically received video and share screens with "people in my Contact list only"- Allow IMs from "people in my Contact list only"  I still received unknow users sent me messages in every day, contact requests etc. And they're all clearly spammings and identity thefts.  I only wanna contact with my family and my freinds here with Skype via my Windows device and my mobile phone (w/Android OS).  And this is the only way to contact with them, because they could use Skype only in overseas.  BUT I don't need new friend from other unknow Skype member.   I keep blocked all unknow spammers in every day.  However in this morning, I feel so scared with Skype on my mobile, I looked at my mobile Skype, I saw it automatically showed me the list of all blocked members. BUT they were all unblocked (contact unblocked) by my mobile (Android version) Skype itself automatically, and listed them one by one on the screen, and about 30 seconds later, they all were disappeared suddenly.  I don't know what do to now, is it indicating my account was hacked?And how could I found out all those members again and block them again and delete all of them for ever?  I appreciate if you would improve the privacy protection. Thank you very very very much. 

    Hrm... that may be true and this may be a function of the phone email client that Apple just doesn't do.
    No, I can easily MANUALLY delete the messages. I would prefer if I didn't have to do it twice, tho. Once on the mail server and once on the phone.
    What I think the phone needs to do is, when it checks the POP, anything NOT there should be removed locally. I think you are correct on POP; the phone will poll the mx (mail exchanger) and the mx will pass off the messages to the phone. The phone then keeps ALL of that unitl you manually delete it.
    If, say, I remove a message from the mx, I would like the phone, when next polls, to see that that particular message isn't on the server anymore and remove it locally.
    Perhaps it's just me but if I delete the message on the mx itself, via my ISP's webmail interface, I really don't want to have to remove it again from my phone.
    thxs!
    cheers
    rOot

  • How to create a new rule in Windows Firewall to permit some specific IPs and block all other computers

    Hello,
    I have a Win7 PC. I want to block all incoming connections except 3 or 4 IPs. How can i do this?
    I created a new rule to block all connections using this steps:
    Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > All Local/Remote IPs > Block the connectiion > All profiles > Then i gave a name
    This rule works fine and blocks all incoming connections.
    Then i want to create a new rule to allow specific IPs using this steps:
    Inbound rules > New Rule > Custom > All Programs > All Protocols / Ports > Remote IPs: 192.168.10.5, 192.168.10.10 > Allow the connection > All profiles > Then i gave a name
    But 192.168.10.5 and 192.168.10.10 couldn't reach W7 machine. 
    (If rules are disabled or FW is off; both IPs could reach W7 machine)
    Thanks

    Hi,
    How did you check these two IP address? Through remote access? According to your description, it should only allow remote IP could access this computer. Please also allow local IP for test.
    Roger Lu
    TechNet Community Support

  • Win 8.1 domain workstation. Block all access, except for a fews users/groups and domain controller information/date.

    Hi!
    Win 8.1 pro, domain workstation. How Block all access, except for a fews users/groups and domain controller information/date.
    Nuance:
    From domain AD is locked Workstation Firewall "Domain profile" edit.
    Possible?
    cenubit

    Hi GirtsR,
    I am not sure the command to use the SID to accomplish what you want to achieve, if you only know the SID, you could take use Powershell to find the related information, more information, please check:
    Working with SIDs
    And a similar thread for reference:
    How to find user/group known only SID
    More reference: Default local groups.
    Best regards
    Michael Shao
    TechNet Community Support

  • How do I block a popup window that I have allowed to open on Firefox once? I now have the popup blocker set to block all sites, but the popup still opens every time I open Firefox or open (sometimes) a new tab.

    How do I block a popup? I allowed this popup to open once. Now I have set the popup blocker to block all sites but this popup still opens every time I open Firefox and sometimes (usually) when I open a new tab.
    I Have stopped and restarted Firefox multiple times.
    I have rebooted the computer.
    I have set the tools/options/content/block pop-up windows/exceptions to block all sites (no exceptions).
    I have no other issues with Firefox.
    I have Adblock plus (with (1) subscription) installed
    I am currently using Firefox version 4.0 on Windows7 Ultimate.

    Just to address the last point: check your History menu to see whether you have the Restore Previous Session option and use that if you can. If that is grayed out or doesn't restore everything, check the Recently Closed Windows and Recently Closed Tabs lists for other pages.
    The unwanted window may be generated by an add-on. Try disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Here are some other things to check:
    (1) user.js file that changes Firefox startup behavior and overrides your preferences. This article describes how to track that down and delete it if you have one: [[How to fix preferences that won't save]].
    (2) Possible hijacked shortcut. Check the "target" of the desktop icon you use to start Firefox to see whether it lists the unwanted page. To do that:
    right-click the icon > Properties > Shortcut tab
    For 64-bit Windows 7, the Target should be no more and no less than this:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    (3) Possible undisclosed bundle items. If you have installed any free software recently, check your Windows Control Panel, Uninstall a program for surprises. If you click the "Installed on" column head to group by date, it is easier to spot bundled junk. Remove everything suspicious or unrecognized.
    (4) Supplemental clean up scans. Our support article lists tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that cures it.

  • IPhone Safari block all calls

    iPhone Safari block all calls
    When i goin to internet in Safari or AppStore at iPhone, people dont colled me..
    Internet(1) + phone talk(2) = only (1) or (2)!
    I buy iphone becose i ned internet and i must every minute talkin by phone, when people call to me
    But iphone dont work as telephone when i use Internet!
    I`m from russia, my mobile operator MTS
    Letter from MTS operator:
    You may use your iphone only for internet surfing or only use as phone at one time
    iPhone is innovation device of Class B, becouse calls and internet you may use only as 1 and 2... but no 1+2 at once time
    iPhone not device of Class A, and its problem of Apple, who create iPhone,
    sorry but we dont help you.
    People! please help me! =) Pleese>>>
    Say.. When you in Safari, you recieve calls?
    Its really problem of iphone or its problem of my mobile operator? (russia, MTS)
    Thanks

    Thanks for info.. =)
    In russia 3G is comin, in my region 3G and EDGE coming soon.. after NewYear =)
    Now in my region work only gprs... =)
    but 3g is coming..
    SO my operator say, that iphone is a B class phone and its work only with voice only with internet... and dont say about 3g work graet with voice and internet..
    thanks very much =)
    Message was edited by: stek

  • Is there an app that blocks all communications from a certain Number

    Does anybody know an app that blocks all communications from a certain number

    There is none. Check with your cell provider.

  • Parental controls blocks all https websites

    When I enabled parental controls for my 9-year old, I didn't expect her not to be able to use Google, Gmail and just about every single other website that requires logging in. The reason? Those websites are all https websites and parental controls blocks *ALL* https websites.
    With https becoming more and more prevalent on the web, adding an exception is not really an option anymore. I don't want to add an exception for half of the internet. It's gotten so bad that she's encountering a popup several times per minute when just doing a little research for her homework. Web filtering is apparently a whilelist only solution, suitable only for the smallest of children - the ones that you sit next to because they can't type a web address themselves, 5 years or younger.
    The only solution I could find was to turn off web filtering completely and use OpenDNS instead. Does anyone else know of a better solution?

    Hello,
    A alternative application as a option that is very worthy,
    <http://www.netnanny.com/mac>
    Randy Mac
    RMACS, LLC

  • Every single time I move to another page, I get a pop-up. Yes, I have clicked on Tools and set browser to block ALL pop-ups. But Mozilla seems to be ingnoring.

    Suddenly, a month or so ago, every single time I open a new page, Mozilla opens a pop-up window. Yes, I have clicked on Tools, etc and set my settings to block ALL pop-ups. Yet, Mozilla has decided to circumvent this setting. If this situation is not handled within a week or two, I shall find and begin using another browser (not that anyone really cares).

    What does that pop-up show?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Block all inactive vendors

    Hi All,
    I am trying to block all inactive vendors in trasaction f.98 other analysis>account>list of vendor w/o business transaction per year. But it is blocking vendors with open items too. Is there any other other way we can block inactive vendors.
    Thanks

    Hi,
    Good evening and greetings,
    Wishing you a Happy New Year 2007
    Go to transaction code S_ALR_87012103 and display the vendor line items and choose only those vendors who dont have any transaction for a specified date range. Use BDC to pass on the inactive vendors to run through XK05 and block the vendors.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

Maybe you are looking for