What is on top: GlassPane or Popup?

The Javadoc say: The glassPane sits on top of all other components in the JRootPane.
In j2sdk 1.4:
I have set a glasspane on a JFrame and set the glasspane to visible. I am letting the glasspane handle all mouse and key events.
If I then redispatch a popup event to a component behind the glasspane and bring up the JPopupMenu, it is displayed in front of the glasspane (glasspane no longer recieves mouseevents).
This is only a problem in the 1.4 version. In 1.3.1 the JPopupMenu is displayed behind the glasspane.
Has anyone had the same problem and is there a way to solve it?

I think it is because, it use heavyweight popup which are in heavyweighht Window, so popup is in front of the glasspane.
Try :
JPopupMenu.setDefaultLightWeightPopupEnabled(true);
I hope this helps,
Denis

Similar Messages

  • GlassPane and Popup

    Hello,
    I have a JPopupMenu the comes up on top of a JPanel.
    The JPanel has its own mouseListeners and a paintComponent() override.
    When the JPopupMenu is displayed, if the mouse moves off the popup into the JPanel, the panel will paint itself and hide the popup. If the mouse then moves back to where the popup is located, the popup will reappear. (Kind of messy!)
    So I added some GlassPane logic so that when the popup is displayed, it will also put up the GlassPane. This prevents the panel from getting mouse events and painting itself. Thus the popup remains visible as it should even when the user moves the mouse off the popup into the panel.
    This all works well. The remaining problem is that the popup has some custom components added to it. For example, it contains some JButtons. When the popup is displayed over the GlassPane, the popup gets mouse events, but its child components do not.
    For example, the popup is displayed and the GlassPane is up. Now the user clicks on a JButton on the popup and the button's actionListener is not called.
    I have set the popup to heavy with setLightWeightPopup(false). But whether I do this or not, the button's actionListener does not get called.
    Any suggestions?
    Thanks.

    Maybe you need to redispatch the events to the button, if glasspane's intercepting them, they won't go to the button on their own.
    If you look at the source for BasicInternalFrameUI, there's an example of that called GlassPaneDispatcher.

  • What does the top level instance name "iop" mean?

    What does the top level instance name "iop" mean?

    Dear Humility,
    In general term higher level account group means which account group is used to the higher level customers in the Customer Hierarchy process.
    Or
    Which of these account groups are valid for higher-level customers in the hierarchy.
    I hope this will help you,
    Regards,
    Murali.

  • What is the top hierarchical class in abap

    What is the top hierarchical class in abap ? in java we have the class Object, that is on top of all the rest.
    Is there a similar class in ABAP ?
    Thanks

    Hi,
    Well actually there is a difference. In Java 'Object' is an actual class which is the root for all other classes (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html). While in ABAP 'type ref to object' only means it is a reference to a class instance. An actual root class like Object in Java does not exist.
    Only for exception classes there is  a root: CX_ROOT...
    Regards, Gerd Rother

  • What are your top 3 favorite AIR Native Extensions? (any OS)

    What are your top 3 favorite AIR Native Extensions?
    OS is irrelevant.

    From looking at most of the threads posted in these forums, people generally come here seeking help with issues they are having while developing an AIR application, hence the name of this community, "Adobe AIR Development". If your question isnt answered within 3 days that doesn't appear to be seeking help with an issue or potential bug, doesn't mean that AIR is dead. People are using this forum everyday as indicated by there being new or active threads everyday. Most questions that people answer or have interest in, are related to iOS and Android development.

  • What does "Press F12 for BBS POPUP" mean when I switch my Equium on?

    What does "Press F12 for BBS POPUP" mean when I switch my Equium on?
    Any idea? Thanks!

    Hi
    I presume you are reading the message provided from POST (Power On Self Test)
    There you can see different messages.
    As far as I know pressing F12 at the beginning of the boot process will enable the boot menu. Then you can choose between different boot options and boot devices;
    So dont worry, its nothing unusual.
    I think it should be possible to disable this in the BIOS;
    Check the option for Boot Settings Configuration / Quiet Boot -> Disabled or something like this.
    Cannot remember exactly how the option is called.
    greetings

  • What are the top 5 apps you have to download once you get the ipad

    what are the top 5 apps you have to download once you get the ipad

    Air video
    Splashtop
    Netflix
    Hulu+
    AvplayerHD
    If you want more....
    Skyfire
    Kindle
    iBooks
    Dropbox
    Dragon Dictation
    TextNow
    Friendly+
    Remote
    These are the ones I use the most.  Barely touch my laptop now.  Use it mostly as a media server on my network.  If I need something on it I just use Splashtop and remote into it. 

  • How to Find out what are the top 20 queries executed in the system

    Hi Guru's,
    I would like to know how to gather the information regarding the Top 20 queries used in the system per week, by a multicube.
    Note: I am using BI 7.0 and also Statistics are turned on.
    People have provided me the Cube name and table name last time but nothing seems to work.
    I do not have the query names and I just have my multiprovider name and with the help of that, I want to find out what are all the queries which were executed related to that multiprovider.
    Thanks and regards,

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • What are your top 10 issues to upgrade E-Business Suite

    Hi everyone,
    My name is Max Arderius, Product Manager for Life Cycle Management products in Oracle. We are doing a big effort to help customers to simplify their E-Business Suite upgrade. We are trying to collect all the information we can to identify the top issues that customers are facing before, during or after E-Business Suite upgrades. We are really committed to address all possible issues and so we can prevent usual problems, showstoppers, inconveniences, lack of documentation and other technical difficulties.
    What would you say are your top 10 issues that faced to upgrade to R12? Or what would you like Oracle to address in the near future to make your life easier?
    I am looking forward for your postings! Thanks!
    Max

    Hi Max ! Hope you are well :-)
    One thing that I assume most folks would find useful is a pre-upgrade script that can do some basic checks to identify any potential issues that need to be addressed before the upgrade starts.
    A simple example is documented in MOS Doc 802515.1 (R12 Upgrade: Workers Fail In Apstca01.Sql) - the profile option in our system was set to NULL (the default) and the apstca01.sql failed in the middle of the first test upgrade - not a big issue, but would have been nice to have this corrected before the upgrade.
    I am sure that are hundreds of such "gotchas" from all the various modules :-)
    This script is almost analogous to the database pre-upgrade script/tool (http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/upgrade.htm#UPGRD12395) that performs some checks and makes recommendations.
    Thanks
    Srini

  • What is the top virus software for my Macbook?

    Just wondering what I should buy because I do not want to waste money?

    ... I do not want to waste money?
    Isn't that why you bought a MacBook Pro? OS X already includes everything it needs to protect itself from viruses and malware, and I assume you spent enough on yours already. Keep it updated with software updates from Apple.
    A much better question is "how should I protect my Mac":
    Never install any product that claims to "speed up", "clean up", "optimize", or "accelerate" your Mac. Without exception, they will do the opposite.
    Never install pirated or "cracked" software, software obtained from dubious websites, or other questionable sources. Illegally obtained software is almost certain to contain malware.
    Don’t supply your password in response to a popup window requesting it, unless you know what it is and the reason your credentials are required.
    Don’t open email attachments from email addresses that you do not recognize, or click links contained in an email:
    Most of these are scams that direct you to fraudulent sites that attempt to convince you to disclose personal information.
    Such "phishing" attempts are the 21st century equivalent of a social exploit that has existed since the dawn of civilization. Don’t fall for it.
    Apple will never ask you to reveal personal information in an email. If you receive an unexpected email from Apple saying your account will be closed unless you take immediate action, just ignore it. If your iTunes or App Store account becomes disabled for valid reasons, you will know when you try to buy something or log in to this support site, and are unable to.
    Don’t install browser extensions unless you understand their purpose. Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Don’t install Java unless you are certain that you need it:
    Java, a non-Apple product, is a potential vector for malware. If you are required to use Java, be mindful of that possibility.
    Java can be disabled in System Preferences.
    Despite its name JavaScript is unrelated to Java. No malware can infect your Mac through JavaScript. It’s OK to leave it enabled.
    Block browser popups: Safari menu > Preferences > Security > and check "Block popup windows":
    Popup windows are useful and required for some websites, but popups have devolved to become a common means to deliver targeted advertising that you probably do not want.
    Popups themselves cannot infect your Mac, but many contain resource-hungry code that will slow down Internet browsing.
    If you ever see a popup indicating it detected registry errors, that your Mac is infected with some ick, or that you won some prize, it is 100% fraudulent. Ignore it.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. To date, most of these attempts have been pathetic and are easily recognized, but that is likely to change in the future as criminals become more clever.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.
    Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.

  • What are the steps to remove popup survey requests?

    On all browsers and all websites that I go to I keep getting these annoying popup survey requests.
    Can anyone tell me what steps are needed to get rid to this problem.
    Thanks

    You may have installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Whitespace at the top of cfwindow popups

    I have several instances where I am using cfwindow to create
    a window and the popup comes with a large amount of whitespace
    above the page, thus pushing the page just below the size of the
    window.
    If the popup page is resized just a tiny bit, the page
    'jumps' into place without whitespace and all works as was
    originally intended.
    Any thoughts on how to get rid of this problem would be
    greatly appreciated.

    I have tried the cfsilent.
    When the popup page is opened in a window of its own; there
    is no whitespace at the top.
    And the whitespace disappears once the window is manually
    adjusted, so it is not true whitespace, but only present
    temporarily.
    The code I use to build the popup is:
    <cfwindow center="true" width="800" height="600"
    name="WinMyIdea" title="PO List" refreshOnShow="true"
    initshow="false" modal="true"
    source="index.cfm?action=compilation_add_po&ID={comp:DYN_FORM_VAL}"
    />
    <script>
    <!--
    function showIdea(theID) {
    comp.DYN_FORM_VAL.value = theID;
    ColdFusion.Window.show('WinMyIdea');
    -->
    </script>

  • What are your top 3 tasks in Creator? We'll document them...

    The Creator Content Team is looking to document the most popular tasks you do (or want to do) in Creator in a quick, easy, accessible way...step-by-step instructions with screen shots. Let us know, and we'll start working on it, now.
    Thanks,
    Carla King
    Managing Editor
    http://developers.sun.com/jscreator/

    I prefer a worked example which demonstrates how to submit a multi page form which updates multiple tables in a database.
    At the end of every page there will be a [b]Continue button to load the next page. At the top of every page you should state how many pages are there in this form submition process and what are they about and what is the current page.
    The database update should only be done after the last page of the form is submitted.
    This is really a very common task (possibly the most common task). Giving an example on this you can show how efficiently and easily this can be done by JSC. We also can make the most of the JSC.
    Thank you very much.

  • What are the top 20 most viewed threads on the forums?

    Is there a way to search to find the most viewed threads?
    I'm curious if I have missed anything good as well as just being curious after all of this time, which threads got the most milage.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Solved!
    Go to Solution.

    Ben wrote:
    Is there a way to search to find the most viewed threads?
    just being curious after all of this time, which threads got the most milage.
    Ben,
    If we do a search on the forum with nothing as keyword, we can get all the threads in this forum listed. Sorting by Replies will display (and offfcourse display 50 threads per page - oops that's the maximum....) and we have to look what we want. This is pretty vague technique. These are the top 3 threads.
    1) Rube Goldberg code
    2) 第2届LabVIEW专家组竞赛获奖程序下载 (Chinese board - 2nd LabVIEW Group Contest Awards Program Download)
    3) Oscilloscope project (Our favorite JLV - one man army - Managed to take care throughout this whole thread)
    Thanks,
    Mathan

  • What happened to : "top 5 things you'd like to see in next version"?

    I cannot find the thread in the forum anymore.
    has it been deleted?

    I cannot find the thread in the forum anymore.
    has it been deleted?
    Excellent question! If our comments are in the wrong location, please provide a link to Apple's preferred location.
    If Apple does not care about our needs, please say so. Although Aperture is currently IMO our best choice in the DSLR image management space, it certainly is not our only choice.
    In any event, please provide an answer to the OP question "I cannot find the thread in the forum anymore, has it been deleted?"
    -Allen Wicks
    P.S. We posters expend a lot of expensive professional time providing what is in our opinion valuable feedback to Apple's commercial enterprise. If Apple considers our feedback irrelevant please so advise so we will not waste our expensive time.
    Thank you Apple.

Maybe you are looking for