Block operations on the GUI when a clock-cursor is Displayed

Hello,
How is it possible to block the actions made on a JPanel / JTable / JFrame etc. ???
The scenario is an operation that is taking place and a clock-cursor is displayed. Ofcourse making the clock-cursor appear does not mean that the GUI is blocked, and actions can be performed with the new cursor image. How is it possible to prevent the user from making actions on certain SWING components ?
Thank you,
Rami

you can try setEnabled method of the Component class. The swing components inherit from this class. For instance, say you want to block actions on a button instance named pushButton. Then you'd would type: pushButton.setEnabled(false).
I haven't tried this yet.

Similar Messages

  • HT203421 i buy a macbook air with my friend and i changed the apple id also.at first i can update the application but now its impossible to update the application.when i clock to update it shows the id of my fren andsomebody do you have idea to solve this

    i buy a macbook air with my friend and i changed the apple id also.at first i can update the application but now its impossible to update the application.when i clock to update it shows the id of my fren andsomebody do you have idea to solve this problem.

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    1. You don't own another Mac.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    2. You do own another Mac.
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.

  • Adobe Reader 11.0.05 won't always display the GUI when opening PDF?!

    I have come across some odd behaviour with Adobe Reader 11.0.05. In particular, the following issues seem to have surfaced since upgrading to 11.x from 9.x.
    Opening a PDF from any application, launches an "AcroRd32.exe" process but the GUI is not shown i.e. you don't see a Reader window or PDF. If you try open the PDF again it will launch another instance of that process and still won't show the GUI. Killing all AcroRd32.exe processes via Task Manager and re-opening the PDF will then work.
    Some users are experiencing the following error when opening PDFs via IE and other 3rd party apps.
    We've deployed 11.0.05 across a few thousand 32-bit Windows 7 PCs and it's a little concerning that PDFs won't always open. At this stage it is very random, maybe 1 out of 5 times it won't show the GUI but launch the process. Our only workaround is to advise users to kill all AcroRd32.exe processes and try again.
    Our packaged 11.0.05 was created as follows:
    AIP created from 11.0 msi > AIP patched with 11.0.04 msp (Q) > AIP patched with 11.0.05 msp (OOC). Transform was created using Adobe Customization Wizard 11.
    Oddly, this does not occur using Adobe Reader 9.5.5 (or other versions of 9.x).
    Sounds like 11.x is buggy, anyone else experiencing the same issues??
    Thanks!

    Yes, I am always having problems. Microsoft fixed the problem for me but it has reverted back to a trial I downloaded. I can't access my PDF at all.
    Packager wrote:
    I have come across some odd behaviour with Adobe Reader 11.0.05. In particular, the following issues seem to have surfaced since upgrading to 11.x from 9.x.
    Opening a PDF from any application, launches an "AcroRd32.exe" process but the GUI is not shown i.e. you don't see a Reader window or PDF. If you try open the PDF again it will launch another instance of that process and still won't show the GUI. Killing all AcroRd32.exe processes via Task Manager and re-opening the PDF will then work.
    Some users are experiencing the following error when opening PDFs via IE and other 3rd party apps.
    We've deployed 11.0.05 across a few thousand 32-bit Windows 7 PCs and it's a little concerning that PDFs won't always open. At this stage it is very random, maybe 1 out of 5 times it won't show the GUI but launch the process. Our only workaround is to advise users to kill all AcroRd32.exe processes and try again.
    Our packaged 11.0.05 was created as follows:
    AIP created from 11.0 msi > AIP patched with 11.0.04 msp (Q) > AIP patched with 11.0.05 msp (OOC). Transform was created using Adobe Customization Wizard 11.
    Oddly, this does not occur using Adobe Reader 9.5.5 (or other versions of 9.x).
    Sounds like 11.x is buggy, anyone else experiencing the same issues??
    Thanks!
    Packager wrote:
    I have come across some odd behaviour with Adobe Reader 11.0.05. In particular, the following issues seem to have surfaced since upgrading to 11.x from 9.x.
    Opening a PDF from any application, launches an "AcroRd32.exe" process but the GUI is not shown i.e. you don't see a Reader window or PDF. If you try open the PDF again it will launch another instance of that process and still won't show the GUI. Killing all AcroRd32.exe processes via Task Manager and re-opening the PDF will then work.
    Some users are experiencing the following error when opening PDFs via IE and other 3rd party apps.
    We've deployed 11.0.05 across a few thousand 32-bit Windows 7 PCs and it's a little concerning that PDFs won't always open. At this stage it is very random, maybe 1 out of 5 times it won't show the GUI but launch the process. Our only workaround is to advise users to kill all AcroRd32.exe processes and try again.
    Our packaged 11.0.05 was created as follows:
    AIP created from 11.0 msi > AIP patched with 11.0.04 msp (Q) > AIP patched with 11.0.05 msp (OOC). Transform was created using Adobe Customization Wizard 11.
    Oddly, this does not occur using Adobe Reader 9.5.5 (or other versions of 9.x).
    Sounds like 11.x is buggy, anyone else experiencing the same issues??
    Thanks!
    Packager wrote:
    I have come across some odd behaviour with Adobe Reader 11.0.05. In particular, the following issues seem to have surfaced since upgrading to 11.x from 9.x.
    Opening a PDF from any application, launches an "AcroRd32.exe" process but the GUI is not shown i.e. you don't see a Reader window or PDF. If you try open the PDF again it will launch another instance of that process and still won't show the GUI. Killing all AcroRd32.exe processes via Task Manager and re-opening the PDF will then work.
    Some users are experiencing the following error when opening PDFs via IE and other 3rd party apps.
    We've deployed 11.0.05 across a few thousand 32-bit Windows 7 PCs and it's a little concerning that PDFs won't always open. At this stage it is very random, maybe 1 out of 5 times it won't show the GUI but launch the process. Our only workaround is to advise users to kill all AcroRd32.exe processes and try again.
    Our packaged 11.0.05 was created as follows:
    AIP created from 11.0 msi > AIP patched with 11.0.04 msp (Q) > AIP patched with 11.0.05 msp (OOC). Transform was created using Adobe Customization Wizard 11.
    Oddly, this does not occur using Adobe Reader 9.5.5 (or other versions of 9.x).
    Sounds like 11.x is buggy, anyone else experiencing the same issues??
    Thanks!

  • How to download the IDOC when i performing WE02 to display?

    Hi ,
    How to download the IDOC into local drive when i performing WE02 to display an IDOC?
    Thanks.

    Hi,
    Check this

  • Update/refersh the GUI application contents

    update/refersh the GUI application contents
    How can i refresh/update the contents of a C#.NET GUI application.(contents of a GUI application)
    I.e: i need to update the GUI form & its contents after every 5-seconds automatically.
    (I have 2 GUI applications, each containing 5-buttons. When i click the button from GUI-form1 it should "automatically" display in the GUI-form2. At present it displays ; BUT, only when i minimize & restore again the GUI form.)
    So, how can i automatically update the new state of the GUI form.
    (just like reloading the GUI application after every 5-seconds)
    (i.e should occur the event after 5-sec)
    pls help!

    Maybe you should ask in a C#.NET forum.

  • Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial v

    Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial versions to compete my work.  So frustrated.

    You will need to have the serial number to activate the products. Please have then handy & also check the compatibility of the operating systems.
    Regards
    Rajshree

  • Non-modal JDialog is not painted and blocks the GUI

    I have developed a GUI that's basically a JFrame with a JDesktopPane.
    The user can, via a menu item, pop up a JDialog that contains some JLists and then select some value from it. Once he/she has done the selection and clicks on OK, the dialog disappears (data processing is then done in the main GUI) and comes back once a specific event has happened. The user then selects other data and so on, until he/she clicks on Cancel, which definitely disposes of the JDialog.
    The graphics of the JDialog are build in the class constructor, which does a pack() but does not make the dialog visible yet. The dialog appears only when doSelection() is called.
         /** Called the first time when user selects the menu item, and then
         when a specific event has happened. */
         public Data[] doSelection() {
              dialog.setVisible(true);
              // ... Code that reacts to user's input. Basically, the ActionListener
              // added to the buttons retrieves the user's selection and calls
              // dialog.setVisible(false) if OK is clicked, or calls dialog.dispose()
              // if Cancel is clicked.
         }Now, everything works fine if the JDialog is modal, but if I make it non-modal only the window decorations of the JDialog are painted, and the control doesn't return to the main GUI. Calling doLayout() or repaint() on the doSelection() has no effect. How can this be fixed?
    I hope I have been able to explain the problem satisfactorily, I could not create a suitable SSCCEE to show you. Thanks in advance for any hint.

    Ok, I've taken some time to think about this problem and I've modified the code a bit.
    Now the dialog shows itself and is responsive (i.e. its JLists can be operated), but the Ok button does not close the dialog as I'd want. I believe that I'm messing up things about threading, and the operations in actionPerformed() should be carried out in another thread, if possible.
    Thanks in advance for any hint / suggestion / comment / insult.
         private Data[] selection;
         /** Constructor */
         public MyDialog() {
              // ... Here is the code that builds the dialog...
              dialog.setModal(false);
              dialog.pack();
              // Note that the dialog is not visible yet
         public Data[] doSelection() {
              operatorAnswer = NONE_YET;
              dialog.setVisible(true);          
              while (operatorAnswer == NONE_YET) {
                   try {
                        wait();
                   } catch (InterruptedException e) { }
              return (operatorAnswer == OK ? selection : null);
         public void actionPerformed(ActionEvent evt) {
              if (okButton.equals(evt.getSource())) {
                   operatorAnswer = OK;
                   retrieveSelection();
                   dialog.setVisible(false);
              else if (cancelButton.equals(evt.getSource())) {               
                   operatorAnswer = CANCEL;
                   dialog.dispose();
         private void retrieveSelection() {
              // ... Here is the code that retrieves selected data from the dialog's JLists
              // and stores it in the "selection" private array...
              notifyAll();
         }

  • How can i use the gui of the operating system

    hi
    i am working with the gui and i want to ask how can the gui of the java be like the operating system..
    ex : i want the buttons and the frame be like the windows xp .. not appear as default..

    i read the UIManager and i found more methods that getting the font the dimension but i want that when i drag and drop the code already inherent the gui (the shape of the buttons , frame and tool bar from the operating system)
    ex : i working with windows xp, i want the shape of the gui of the frame that i drag and drop it be like the gui of xp)

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • The operation can't be completed because you don't have permission to access some of the items. ive moved these files from my sd card to the trash, when i take out the sd card the trash empties but then fills up when i put it back in, it wont empty.

    The operation can’t be completed because you don’t have permission to access some of the items. ive moved these files from my sd card to the trash, when i take out the sd card the trash empties but then fills up when i put it back in, it wont empty.

    In the Finder, press the key combination shift-command-C, or select
              Go ▹ Computer
    from the menu bar. A window will open showing all mounted volumes. Select the one in question and open the Info window. What is shown as the Format in the General section?

  • I get the error message in QuickTime "operation stopped the operation is not supported for this media" most times when I try and export an .AVI file as something else (.m4v). I have not touched the file in any way (no trimming, clipping or other editing)

    I get the error message in QuickTime "operation stopped the operation is not supported for this media" most times when I try and export an .AVI file as something else (e.g. .m4v). I have not touched the file in any way (no trimming, clipping or other editing), all I want QuickTime to do is export the file in a compressed format. Bizzarely, if I shutdown and open QuickTime many times I can occasionally export a clip as another format (maybe one in 10 times). I have seen that other users have had a similar problem after clipping files in QuickTime but this seems to be a slightly different bug in that all I do is open the file and then try and export the file as is - either way, this is a very annoying bug

    @Z_B-B, thank you for taking the time to respond to my cry for help. However, the link you supplied does not address the problem: I am not trying to export from Final Cut Pro to QuickTime, I am trying to export from QuickTime to the rest of the world (like people's iPhones and Ipads) in .m4v format (so I am not emailing my freinds such huge files).
    If I were to spend hundreds of Dollars on a copy of Final Pro I could export directly from there and not have to bother with QuickTime, but I do not take enough video clips to justify the cost. I must say that I never had any of these problems before I decided to switch from Snow Leopard to Mountai Lion.

  • I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even h

    I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even had upgraded to the Mavericks . I do not think it's fair to have to pay again and I would like to upgrade my operating system without having to pay again for the same system.

    Hi anatuta, 
    Thanks for visiting Apple Support Communities. 
    It sounds like you are trying to upgrade your Mac to a newer version of OS X, after completing a fresh install of Snow Leopard. 
    If you have already purchased and downloaded OS X Lion and Mavericks, you should be able to find these items in the Purchased section of the Mac App Store. 
    You may find the steps in this article helpful with finding the items:
    Mac App Store: Finding your purchased apps - Apple Support
    If you do not see the items in the Purchased section, they may be hidden:
    Hide and unhide purchases in the Mac App Store - Apple Support
    All the best,
    Jeremy 

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • TTL Digital Clock - Wire output feeding 2 active low inputs (LOAD, CLR) only activates one of the inputs when LOW

    I'm designing a digital 12 hour clock using TTL. I'm using decade counters to increment the time for the seconds, minutes, and hours. My problem is for the hours:
    The hours of a normal clock usually reset when hitting 12 back to 1. The logic for this is easy, since I'm using 2 decade counters for the 10's and 1's of the hour, I NAND whenever the 10's output is 1 and the 1's output is 3. The output of this NAND goes into the active low RESET of the 10's and the active low LOAD of the 1's (because I want to load hour 1, there is no 0 hour). My problem is that only the CLR gets activated during that short LOW pulse, and the 1's stays at the current value of 3.
    I've been troubleshooting this for the last hour and I can't figure it out... Any help is greatly appreciated.
    PS. My circuit allows for presetting the clock. The switch hotkeys are 'a' and 'space'. To increment the hours when simulating, press 'a' twice, and 'space' twice to increment. Also be aware that the clock LED displays are backwards, so the hours start from the right, 10's of hours, 1's of hours, 10's of minutes, 1's of minutes, etc...
    Message Edited by Zmeu on 04-06-2010 11:23 PM
    Message Edited by Zmeu on 04-06-2010 11:23 PM
    Attachments:
    digiclock.ms10 ‏507 KB

    Haha, what an adventure eh? In a way, I am sad (and nostalgic) for discrete logic components. But then again, some days, I am not.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • How do you unblock a blocked plug-ins safari? when i go to the updated version to install it, it still tells me "blocked plug-in".

    how do you unblock a blocked plug-ins safari? when i go to the updated version to install it, it still tells me "blocked plug-in".

    I'll assume you mean Flash. If you're sure you've installed the latest version of Flash, take each of the following steps that you haven't already tried. After each step, relaunch Safari and test. For a "missing plug-in" error, start with Step 5.
    1. If you're only having trouble with YouTube videos, sign in to your YouTube account and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
    2. If you're getting a "blocked plug-in" error, then from the menu bar select
     ▹ System Preferences… ▹ Flash Player ▹ Advanced
    and click Check Now. Quit and relaunch your browser.
    3. Triple-click the line below to select it:
    /Library/Internet Plug-Ins
    Right-click or control-click the highlighted text and select
    Services ▹ Open
    from the contextual menu. A folder should open. Delete the following item, or anything with a similar name, if present:
    Flash Player (failing).plugin  
    You may be prompted for your login password.
    4. Re-download and reinstall Flash. Download it from this page:
    Adobe - Install Adobe Flash Player
    Never download a Flash update from anywhere else.
    5. If you get a "missing plug-in" error, select
    Safari ▹ Preferences... ▹ Security
    from the Safari menu bar and check the box marked Enable plug-ins.
    6. Select
    Safari ▹ Preferences... ▹ Extensions
    from the Safari menu bar. If any extensions are installed, disable them.
    7. In the Safari preference window, select
    Privacy ▹ Remove All Website Data
    Close the window. Then select
     ▹ System Preferences… ▹ Flash Player ▹ Advanced
    and click Delete All. Close the preference pane.

Maybe you are looking for