JPopupMenu : how can I know when the mouse leaves the popup?

Hello,
I need to know when the mouse leaves a JPopupMenu or more precisely when no items are overlighted. Adding a mouselistener to the popup does not work because the JMenuItems themselves capture the mouse.

Actually, I added a MouseListener that extends MouseAdapter to the component that owns the popup, and the same MouseListner to the popup itself. I have only overriden the MouseEntered method to let me know that the mouse is no more over a JMenuItem. It's now working fine, but I don't like that kind of programming.....
I need that to do a toggleButton with a popup menu that would remember the last item selected when the mouse leaves the popup. (Because once a choice is made, the selected "tool" appears as an icon in the button and that icon is updated when the items of the popup are overlighted. So that when the mouse leaves the popup, the selected tool has to reappear as an icon in the button and the associated item has to be armed.)

Similar Messages

  • How can I know when the laptop was last used?

    I left my laptop at the office, which is also my parents' house over the weekend. How can I know if someone else had used it while I was gone? Is there a log somewhere I can read or check?

    Console.app and check your browser(s) history. 

  • How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    Thanks for looking into this Jeff!
    I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
    The problem tracking updates with Desktop Creative Cloud Software are;
    1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
    2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get  detected with the software version update which would create problem in reporting.
    3)For all CC products, there is no base or previous updates available for installation if we miss one.
    I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
    So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
    Regards,
    Subrat

  • How can i know if the sync process is done after a bookmark adding or so such and when it is processing , immediately after changes or what?

    how can i know if the sync process is done after a bookmark adding or so such and when it is processing , immediately after changes or what?

    I don't know whether you solve your problem or not! Anyway, I have the same problem. The program hangs when getInputStream is called.
    DataInputStream dis = new DataInputStream(request.getInputStream());
    If you have the answer, please let me know. Thanks!!

  • HT4515 how can i know if the number i am calling is busy or i am on waiting

    How can I know if the number I am calling is busy or I am on waiting? Please let me know.

    If you get a busy signal when calling a number, it is busy.

  • How can I know when I reached space limitations

    Hi, I want to know what happens when an enviorment reachs its space limitation.
    I know that space available is 30mb per user and the only way to know how much space you've consumed is by calculations about the number of registers.
    But I'd like to know how can I know when I reached that limit and what is the procediment to buy more space (overall how much time it takes).
    Every comment will be appreciated.
    Thank you.
    Edited by: linkln on 13/08/2010 10:29 AM

    We recently instituted a new CRM On Demand storage policy and we realize it hasn’t been disseminated as broadly as it should be. This new policy is significantly more generous than the former policy at no additional charge. We used to offer 30MB pooled storage for Multi-tenant, 45MB for Single-Tenant Standard Edition, and 60MB for Single-Tenant Enterprise Edition (this space covered standard records and attachments).
    Customers often think in terms of records and not MB, especially when they are considering importing x million contacts or other records. An average record uses 2KB. We have made the following changes:
    1)     Multi-tenant. Converted the 30MB to 15,000 records. Added 100MB per user for attachments;
    2)     Single-Tenant Standard edition. Converted the 45MB to 22,500 records. Added 150MB per user for attachments;
    3)     Single-Tenant Enterprise edition. More than doubled the 60MB to 70,000 records. Added 200MB per user for attachments;
    In summary the new limits are:
    Storage Allotment by CRM OD Offering______     Records per User_____Megabytes for Attachments to Records per User
    Multi-Tenant___________________________15,000 ____________100
    Single-Tenant Standard Edition_____________22,500 ____________150
    Single-Tenant Enterprise Edition____________70,000 ____________200
    A couple of additional notes:
    •     When counting records we are only counting primary data records. Meta-data and configuration records don’t count against the limit.
    •     Usage is pooled as before (i.e. a customer receives the amount of storage per subscriber as listed above multiplied by number of subscribers).
    Edited by: bobb on Aug 13, 2010 10:57 AM
    Edited by: bobb on Aug 13, 2010 11:03 AM

  • How can i know when a refurbished ipod touch 5 is available in Singapore ?

    How can i know when a refurbished ipod touch 5 is available in Singapore ?

    Only when you go to the refurbished section of the Apple Store web page and they are listed as available

  • How can i know when and where my iphone replaced and

    how can i know when and where my iphone repalced by new one

    Seriously? You had your phone replaced under warranty, & you have no idea where or when you did this?
    Well, no one here would have any idea. As a start, plug the SN in here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How do I know when the buffer flushed all the data out?

    I am using a very high sampling rate (500000 Hz) and acquire 1024 data points continuously.   It takes 370000 data points in 10 second.   I use a counter to help with the retrigger PFI line.   I have a huge buffer so that I can make sure that the buffer is not overflowed.  The code is attached below.  My problem is that the data acquisition is done so fast (in 10 seconds)  but the processing of the data is not.  In :nEvent, I basically save and plot the data.  The saving process is not slow.   However, our videocard is so SSSSLOOOW and can not keep up with realtime data display.    After the user is done collecting the data, they do not want to wait for the screen to plot the data from the buffer.   So after the data collection is done, I basically stop the plotting process but we still need to flush the data out from the buffer for saving.  My question is that how can I tell when the buffer is empty.
    Thanks,
    Yajai
    m_task = std::auto_ptr<CNiDAQmxTask>(new CNiDAQmxTask("aiTask"));
    m_counter = std::auto_ptr<CNiDAQmxTask>(new CNiDAQmxTask("coTask"));
    m_task->Stream.Timeout = -1;
    //Create a channel
    m_task->AIChannels.CreateVoltageChannel(physicalChannel, "",
    static_cast<DAQmxAITerminalConfiguration>(DAQmxAITerminalConfigurationRse), minimum, maximum,
    DAQmxAIVoltageUnitsVolts);
    m_task->Timing.ConfigureSampleClock(counterSource, sampleRate,DAQmxSampleClockActiveEdgeRising,DAQmxSampleQuantityModeContinuousSamples, samplesPerChannel);
    m_task->Stream.Buffer.InputBufferSize = samplesPerChannel * 2000;
    m_counter->COChannels.CreatePulseChannelFrequency(counterChannel, "coChannel", DAQmxCOPulseFrequencyUnitsHertz, DAQmxCOPulseIdleStateLow, 0, sampleRate, 0.5);
    m_counter->Timing.ConfigureImplicit(DAQmxSampleQuantityModeFiniteSamples, samplesPerChannel);
    m_task->Control(DAQmxTaskVerify);
    m_counter->Control(DAQmxTaskVerify);
    m_counter->Triggers.StartTrigger.ConfigureDigitalEdgeTrigger(
    referenceTriggerSource, DAQmxDigitalEdgeStartTriggerEdgeRising);
    m_counter->Triggers.StartTrigger.Retriggerable = true;
    m_taskRunning = true;
    m_counter->Start();
    // Set up the graph
    m_Graph.Plots.RemoveAll();
    for (unsigned int i = 0; i < m_task->AIChannels.Count; i++)
    m_Graph.Plots.Add();
    m_Graph.Plots.Item(i+1).LineColor = m_colors[i % 8];
    // Create Multi-channel Reader
    m_reader = std::auto_ptr<CNiDAQmxAnalogMultiChannelReader>(new CNiDAQmxAnalogMultiChannelReader(m_task->Stream));
    m_reader->InstallEventHandler(*this, OnEvent);
    m_reader->ReadMultiSampleAsync(samplesPerChannel, m_data);

    Yajai,
    I'm a little confused about your acquisiton. Do you intend for it to be
    finite, or continuous? I'm also unclear about your rates. You state
    that you are acquiring 1024 samples at 500kHz, yet you get only 370k
    samples in 10 seconds. Are you periodically acquiring 1024 samples at
    500kHz?  Do you do any reads other than the final m_reader->ReadMultiSampleAsync(samplesPerChannel, m_data)? Could you provide the code where you stop the plotting process?
    Thanks,
    Ryan V.
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • How can i know if the face time is working on the iPad before i buy it?

    How can i know if the face time is working on the iPad before i buy it?

    I am plan to buy new ipad2 and i want to check before i buy it, if there is facetime or not?
    As far as i know if it is from KSA there is no face time in, but if it from US there is facetime in?
    And i have the serial number.

  • HT1459 My I pod is not responding  how do I know when the ipod had actually died?????

    my ipod has the green lights however when i try to listen to music ....nothing ....i tried several head sets. how do i know when the ipod is finally dead

    Read the manual for a solution - iPod Manuals

  • How do we know, when the service contract is last modified ?

    How do we know, when the service contract is last modified and by whom ?
    thanks
    siva
    Edited by: sivapara on Nov 24, 2008 3:14 PM

    To add also in OKC_K_HISTORY_B for some actions.
    Thanks
    Nagamohan

  • How can I know if the Oracle software is  64-bit or 32-bit

    Hi all,
    How can I know if the installed Oracle software is 64-bit or 32-bit.Actually I'm using an oracle database 10.0.2 on a Solaris 10.
    Cheers.

    Dear user11191992,
    Please check below link;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/dynviews_3120.htm#REFRN30296
    Here is for the release number;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/dba004.htm#ADMIN11039
    Another way is to enter the database with;
    # sqlplus / as sysdbaHope That Helps.
    Ogan

  • Money is deducted from my bank account but iTunes show no purchases. How can i know why the amount is deducted ?

    1. Money got deducetd from my account in favor to iTunes store although i purchased nothing.
    2. I checked with iTunes Purchases it confirms that nothing is purchased.
    3. How can i know why the money has been deducted from my sccount ?

    See Here  >  http://support.apple.com/kb/HT3702

  • How do you know when the music is synced to an ipod classic? I don't see it showing it in the window.

    how do you know when the music is synced to the ipod?the lod version would show it syncing in the window at the top of the screen this version doesn't.

    If you have access to a Mac couldn't you receive your verification via iMessage and work to view you iCloud Account?

Maybe you are looking for

  • Customer / Vendor Aging Report

    Hi, It´s important to consider the next filter or selection criteria for the reports: -. Customer and Vendor Aging Reports Filters: -. by Sales Employee (Customer Aging) -. by Buyer (Vendor Aging) regards

  • I have two ipad2's how can i load purchased apps to each ipad2 from the same itunes library?

    I have two iPad2's and I wish to load purchased apps from our iTunes library to our newest iPad2.  Can anyone direct me and or provide steps in completing this process? Thank you. texasboytn

  • Oracle 8.1.7 and AIX 5.3

    Is Oracle 8.1.7 with AIX 5.3 is supported? Where can I find the information? Thank you.

  • Multiselect drag and drop in ADF

    Hi, Is there any way I can implement multi select drag and drop in ADF. Currently I have a UI where I have several cards. Each card is built using panelStretchLayout and I can drag and drop each card. The requirement is to be able to select multiple

  • INVALID VOLUME FILE COUNT and INVALID VOLUME DIRECTORY COUNT

    Every few days, something on my machine is causing an invalid volume file count and an invalid volume directory count. Error message will read something like: Invalid volume file count (it should be 520176 instead of 520178) Invalid volume directory