Updating GUI after JFileChooser choice made.

Hello, I'm trying to enable a button on the GUI that launched the JFileChooser to become enabled if an appropriate file was selected.
I can set a variable to true if 'open' was clicked.
I can set a variable to false if 'cancel' was clicked.
I can get the value of the variable back again, but I don't know how to go about using them to activate the button enabled property of my button to change.
Any help or advice?

Hello, I'm trying to enable a button on the GUI that
launched the JFileChooser to become enabled if an
appropriate file was selected.
I can set a variable to true if 'open' was clicked.
I can set a variable to false if 'cancel' was
clicked.
I can get the value of the variable back again, but I
don't know how to go about using them to activate the
button enabled property of my button to change.
Any help or advice?You need a reference to the button. Then simply pass the boolean variable into the setEnabled() method that JButton inherits from AbstractButton.
myButton.setEnabled( myBooleanValue );� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Fusion Projects Actual Costs dashboard is Updating even after Receipt is Made

    Hi Everyone,
    I am working on Fusion PPM Release 9.
    I have created a PO & Approved it Then "Process Commitment Transactions" & "Update Project Performance Data" Scheduled Process were run.
    At the dash Board i am able to see the commitmemt Cost.
    Not i have made receipt, Then "Transfer Transactions From Receiving To Costing" & "Create Entries for Receipt Accounting" & "Import & Process Cost Transactions" & "Update Project Performance data"were run but still dashboard actuals were not updated
    Any help regarding above issue is Appreciable 
    Thanks
    Shaan

    Thanks for your reply Sudhir.
    You also re-iterated all the same things I said in my previous post. That is, when you create an Order and assign it to a WBS which has been budgeted for,  the WBS controls the budget for the Order. That is all true.
    However, my current scenario is:
    (a) If I create a PR or PO for the Order from IW32 - Availability control for the Order works perfectly.*
    (b) If I create a PR or PO through me51n or me21n, which account assignment F (order) and assign the same Order to it - Availability Control DOES NOT work.
    My availability control settings have '++' in the Tolerance limit settings to ensure all transaction groups are considered. In any case, the other troubling thing is, when you create the PO or PR directly (me51n/me21n), the cost does not even show up on the Budget report (s_alr_87013558) until after goods receipt.
    Have you seen this scenario before?
    Thanks in advance

  • How do i get that little pop up menu with all the editing choices on it that i used to get?  Is there a way to get the editing box to pop up as I make a new event instead of editing an event after i just made it ??????

    How do i get that little pop up menu with all the editing choices on it that i used to get?  Is there a way to get the editing box to pop up as I make a new event instead of editing an event after i just made it ??????

    Michal,
    iCal Help is a good place to start. Here are a couple of examples:

  • I have I phone 4s. I made update and after that the WI-FI is not starting. Can somebody tell me what to do? Thank you

    I have I phone 4s. I made update and after that the WI-FI is not starting. Can somebody tell me what to do? Thank you

    I have the exact problem on my 4s immediately after updating to 6.1.2. Not able to enable the phone wifi at all! Can anyone please help?

  • Have reformatted my Imac using original discs (installed leopard (10.5)) tried to do the software update but it cant download the itunes update and when it gets to the configure update screen after restart for main update, it just gets stuck. HELP!

    have reformatted my Imac using original discs (installed leopard (10.5)) tried to do the software update but it cant download the itunes update and when it gets to the configure update screen after restart for main update, it just gets stuck. HELP!
    The configure bar gets about an 1/8 full and then just does nothing. I think its lists the update as combo update? cant remember with out checking.
    I have tried to do the disk verify and repair but this has made no difference.
    Please let me know what i need to do, I have reformatted the mac just to start over as was clogged with a lot of useless data, I had installed lion (10.7) from the app store previously and now cant seem to find a way to re install lion. I hope I dont need to pay for it again?

    If you erased your hard drive, you'll need to reinstll OS X 10.6 Snow Leopard to access the App store. You won't have to pay for OS X 10.7 Lion again. Did you try booting to the recovery partition by holding the command and r keys down? If that's still there, you can reinstall OS X 10.7 from there.
    If you're looking to install the current iTunes, you need OS X 10.6.8 at a minimum.
    If you're still trying to update OS X 10.5 Leopard, you can download the combo update from here.  Download, use Disk Utility to repair permissions, apply the update, then repair permissions again. That will take you to OS X 10.5.8.

  • Itunes shows only 4.3.5 update even after downloading itunes 10.5 on mac..

    itunes shows only 4.3.5 update even after downloading itunes 10.5 on mac..

    Problem solved.
    In iTunes, I selected Backup from my iPod's contextual menu under Devices. I then did a restore and all the music is back. It only took a few minutes.
    These choices are only available via the device contextual menu, not the main iTunes pull-down menus.

  • Updating form after a button is pressed

    If I have a simple form with a button and a progress bar and then I create an object of this 'GUI' class and instantiate the form, then the user presses the button how can I update the progress bar from 0 to 100%? In other words, in my actionPerformed(ActionEvent e) method how can I then use the previously instantiated object of the 'GUI' class to update the form?

    More information....
    I create an object to instantiate the form. Now if I update the progress bar with this object everything works great.
    I also have an object of the same type that is global that I set equal to this original object that instantiates the form. If I update the progress bar with this object (which should be the same) then the progress bar does not update until after the progress bar is at 100%?!?
    Does any of this make any sense?

  • Details of video preview with Mercury Transmit in the 2014 update to After Effects CC

    In the 2014 update to After Effects CC, which is available today, the technology used for video preview on an external monitor has been replaced with Mercury Transmit technology from Premiere Pro. Read about it in detail here:
    http://bit.ly/AE_video_preview
    Please post in this thread to discuss or ask questions about these changes.
    Read about all of the other changes coming to the 2014 update to After Effects CC here:
    http://bit.ly/AE_CC_next_details

    Jef,
    It's your choice if you wish to use Mercury Transmit with your AJA cards, or the AJA Preview plug-in. You do not need to uninstall anything, but you should disable the one you are not using.
    The differences between the two are subtle, but can be simplified (very grossly simplified) to speed vs. accuracy.
    The AJA Preview plug-in has a performance advantage over Mercury Transmit. AJA is able to optimize the frame throughput because they have better access to their hardware. You should be able to get real-time previews under most circumstances.
    Mercury Transmit has better access to the After Effects pixel buffer than the AJA Preview plug-in. For example, when color management is enabled in the project, Mercury Transmit will apply color transforms. These color transforms require additional processing, which can slow down the preview speed and drop it below real-time.
    Performance of video preview in After Effects (any version, using any of the available technologies) otherwise tends to be a straightforward equation of the computer's processor horsepower vs. the requirements of the frames being pushed (frame size + frame rate + color depth + color management). In the "performance of RAM preview when video preview is enabled" section of this page, I've detailed what levers you can pull to affect the performance of video preview in After Effects:
    http://blogs.adobe.com/aftereffects/2014/05/video-preview-mercury-transmit-after-effects.h tml
    If you continue to have problems, please post more detail about the settings you are using, especially whether you are using greater than 8-bpc color or color management in the project. Machine specs and the state of the machine, including the amount of RAM, free RAM, and other applications running, will also be helpful. Please also state, given all of the above, what frame rate is being reported in the Info panel during RAM preview playback.

  • Updating guis

    hi,
    i'm currently having a small bit of a problem with a program i'm writing. Basically, i have a gui - when the user clicks on a specific button, I want the system to simultaneously perform a long algorithm and update the gui. When using threads, I set the first one to perform the algorithm and the second one to update the gui. In the case of updating the gui, what i need to happen is for a new list of options to appear on the existing gui but i need this to appear while the other thread is performing the algorithm. I am using the paintImmediately() method but whats happening is that the gui is not being updated until after the thread performing the algorithm is complete. i cant afford to let this happen as it seems to be really slow and unresponsive. Does anyone know any alternate ways to get around this (hope i explained it alright)
    any help much appreciated

    it sounds like the thread performing the algorithm is doing all the work and then updating some data - so i'd guess it needs to tell the gui thread that more information is available while it is executing..
    you could either pass in a JComponent to update (bad practice but quick and dirty) or you could have the algorithm write to some structure which is the meat of a model used by a JComponent

  • Lync 2013 updating databases after updating Front End servers

    We have a front-end server pool consisting of 3 Lync 2013 servers and a back end of 2 SQL servers using SQL mirroring.  All servers are Windows 2008 R2.
    Following the instructions in
    http://support2.microsoft.com/kb/2809243 , I verified that the servers were all ready for updates, then I ran the
    Stop-CsWindowsService -Graceful cmdlet to stop the Lync services on the first FE server, then I ran LyncServerUpdateInstaller.exe to install the updates.  After the updates were installed, I restarted the server, waited for Lync services
    to all start, then repeated the process on the next 2 servers in turn.  This was all successful.
    I am now looking at step 2 in this document, applying the back-end database updates, and I have a problem and some questions.  The problem is that all the databases had the principal copy on the mirrored SQL server.  I ran the recommended Invoke-CsDatabaseFailover
    -NewPrincipal Primary cmdlet repeatedly, using all the database types I could find, but I still have two databases (database names
    xds and lis) on the mirrored server.  Since the cmdlet requires a database type, what type of databases are the xds and the lis databases?
    Once I get that done, I an still unsure of exactly what to run to update the databases.  The KB article states to run Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN -Verbose .  Do I type this in exactly
    as stated, or is FEBE.FQDN a variable for our SQL server or some other entity in our environment?  If I do use the actual SQL Server name in that, do I run it twice, using the name of the mirrored SQL server the second time?  
    Thank you very much for your help.

    Hi Logan Burt,
    Central Management store database files
    Data file or log purpose
                    Xds.ldf
    Transaction log file for the Central Management store
                    Xds.mdf
    Maintains the configuration of the current Lync Server 2013 topology, as defined and published by Topology Builder
                    Lis.mdf
    Location Information service data file
                    Lis.ldf
    Transaction log for the Location Information service data file
    And you could verify if Lync Server 2013 database updates have completed successfully.
    How to Verify if Lync Server 2013 Database Updates Completed Successfully
    http://blogs.technet.com/b/dodeitte/archive/2013/07/02/how-to-verify-if-lync-server-2013-database-updates-completed-successfully.aspx
    Best regards,
    Eric

  • I have mac os x10.4.11 Tiger , i tried to update and after I did that when I tried to use itunes, but it doesn't open.. can anyone tell me what I have to do to fix this ??

    I have mac os x10.4.11 Tiger , i tried to update and after I did that when I tried to use itunes, but it doesn't open.. can anyone tell me what I have to do to fix this ??

    Hello,
    Leopard requirements/10.5.x...
        *  Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    minimum system requirements
        * 512MB of memory (I say 1.5GB for PPC at least, 2-3GB minimum for IntelMacs)
        * DVD drive for installation
        * 9GB of available disk space (I say 30GB at least)
    Classic/OS9 Apps no longer supported.
    Trouble is Apple no longer sells it, check eBay & such for the Retail version, not the Gray Discs...
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+leopard+retail+10.5
    There are workarounds if the 867MHz CPU is the only hangup...
    http://sourceforge.net/projects/leopardassist/
    http://lowendmac.com/osx/leopard/unsupported.html
    So we know more about it...
    At the Apple Icon at top left>About this Mac, report the version of OSX from that window, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: eMac
    Model Identifier: PowerMac6,4
    Processor Name: PowerPC G4 (1.2)
    Processor Speed: 1.42 GHz
    Number Of CPUs: 1
    L2 Cache (per CPU): 512 KB
    Memory: 2 GB
    Bus Speed: 167 MHz
    Boot ROM Version: 4.9.2f1

  • Can't update apps after upgrading to iOS 8 on ipad air

    can't update apps after updating to iOS 8 on iPad air

    There are 2 ways to fix the issue:
    1) Disable mod_spdy
    2) Push Apple to fix Safari 8, b/c the problem exists in both iOS and desktop versions

  • I can't update iPhoto after installing OSX 10.9.2, it has the name otto@**** in the apple ID box and will not let me change it. Any thoughts?

    Hello people,
    I can't update iPhoto after installing OSX 10.9.2, it has the name otto@**** in the apple ID box and will not let me change it. Any thoughts?
    Thanks
    <Email Edited By Host>

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, the App Store may prompt you to update "Angry Birds" or "Twitter," but the hacked app may be something else entirely. Don't make any assumptions about which app you're looking for. To find it, you must carry out a systematic search with Spotlight.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
    Other...
    A sheet will drop down. In that sheet, select
    Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    4. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

  • TS1368 I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not su

    I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not sure how to sort this out. Please help
    Thanks
    Andy

    I've been having this problem for weeks and have found no solution to it. There are lots of other people with this issue too if you look back on the boards. I even e-mailed AND called Apple and have had no luck. I tried all the suggestions they gave me and all the ones I found on here- nothing worked. I even uninstalled and re-installed iTunes (boy was that a pain!) and no difference.
    The weird part is that I have an old laptop that works and if I buy music with the laptop I can download it with my regular computer buy buying does not work on my regular computer. That tells me it's not a connection issue. I can't get to my account either.
    I can't figure out why an issue that has kept so many people from purchasing a product has been ignored!

  • Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

Maybe you are looking for