JMenu fails to disappear when user clicks outside the JMenu................

I have implemented a JMenu within a JMenuBar everything runs fine. However, with this application and with all others I have seen when you click a JMenu leaving it open and then click anywhere on the title in Windows the JMenu remains open. Windows native programs dont do this and it is just a nuisance for a user to go and disable the JMenu by clicking it again.
Does anyone have a solution for this.

As this new feature works... say you have a JInternalFrame you want to be "modal" well cause they are lightweight, that is inpossible. SO now you can set a JDialog to unDecordated() and implement the JInternalFrame paint methods, and produce a "JInternalFrame" that is "modal" (just an example) i just the "setUndecorated(false);" in my JXcalendar popup, it works bette rthan JWindow, cause it listens for all window events.
Hi Johannes,
I checked this and it did not work. Then I read the
bug evaluation (should have done this before): JAVA
doesn't get any event from the title bar. The
workaround is provided in 1.4 with
"non-decorated window frames and the ability to add
user defined window decorations".
I don't know this stuff. Is there anybody who already
has got experience with these new features?

Similar Messages

  • Is it possible to display an Alert when user clicks on the X on the browser

    Hi
    Is it possible to display an Alert when user clicks on the X on the browser.I saw some threads regarding this mentioning about js.I want to do this ins the iProcurement module and dont wnat to make changes to each and every page.
    isn't there any global setup which would help to achive this?

    Are you talking about Windows close X. If yes, then to my knowledge there is nothing in OA Framework to handle it. You can check if it can be handled using javascripts.

  • How to sort data in descending order when user clicks on the column heading

    Hi
    I have a report called "Top customers", which shows the top customers for a specific product line. It displays the customer name and one column with the total amount spent in the period for each product line. By default, the leftmost product line is sorted in descending order.
    If the user wants to know who are the top customers for another product line, they simply click on the column heading to sort the list by that column.
    The problem is that when you click for the first time on a sortable column heading, Apex sorts it in ascending order; you need to click on the same column heading again to sort in descending order.
    Is it possible to change this behaviour and sort the data in descending order in the first click? So the users don't have to click twice...
    Thanks
    Luis
    PS: Apex 3 running on Oracle 10.2.0

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • When user clicks on the link ,it will display some record based on value

    Hi
    i want to create such a query/request in the Dashbord,when user click on it, it will open the other request in the same place based on the value it clicks.
    More detail idea about the question:
    for ex. i have created one query, which gives the following output.
    current_loan_amount Current_status
    now when user click the current_loan_amout ..........the detail page will be displayed.
    wchich will give the dettail about the Current_loan_amount.....like to whom the loan has been given,region,address,broker name etc..
    So if anybody knows anything about this.
    Guide me

    Yes you can create a navigate report where it displays the details for the amount user selected.
    You can enable navigation on the metric(column format-interation-navigate) and give the path of the other qyery.
    You just need to pass all the values that you need using "Is prompted" Filters.
    Hope it helps
    Prash

  • Multiclip angle disappears when I click on the file

    I've created a multiclip of two video angles and one sound source. When I click on the clip in the event browser, the angles show up properly in the angle viewer. But when I clip on the display at the top of the event browser, only one video angle shows up.
    And when move the clip to the storyline for editing, it's also missing.
    This is driving me crazy! I've already trashed the prefs. This has never happened before.
    -- all clips play fine separately.
    -- all clips sync properly
    -- same video clip disappears each time.
    Any thoughts?
    Thanks,
    /john

    Good question:
    Here's a screen grab of that angle sitting in the timeline by its lonesome. It just doesn't like to be part of a multiclip and I can't figure out why.

  • How can I prevent forms from being prematurely submitted when users click on the  "Enter" key?

    Is there any way that I can prevent Dreamweaver CF submission forms from being prematurely submitted by the user when he/she clicks on the "Enter" key before they have completed the form?  I need the users to finish form and click on the "Submit" key.  I have the "Submit" key action configured as "submit form"

    Thank you!
    Found a solution through Google.

  • I'm creating a PDF form and want to include faded text to show an example of what I want people to fill in. Much the same as a search bar in a web browser - this needs to disappear when they click in the field to fill in their details. How do I do this?

    I was wanting to create a form that would show sample information in a watermark effect that would diappear once the field was clicked onto.
    Example form question and field below:
    Rather than the blank fields I wanted them to show some examples (in faded text) but which dispeears once the field is clkicked into (nuch the same as a web search online works)
    Anyone know if this is possible?

    See this thread:
    http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx

  • By default first tab should open, when user clicks on the Open popup.

    Hi Team,
    I am working on Jdev11g.
    I am facing problem to Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup.
    Currently i am populating one list for records in ADF table and in fisrt column i am providing commandImageLink to open popup which contains 5 different tabs.
    when i select first record from table and click to open popup it's working fine .If i select any tab apart from first tab and i close the popup it is getting closed properly.
    But when i revisite that popup it shows me the popup with default Tab opened which i was earlier selected when i checkout from that popup.
    I want Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup.
    Thanks
    Jaydeep

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • When user click on Submit in the salesquote then this submit action needs to be captured in the BeforeSave script file

    Hi Expert,
    Explanation:
    In the sales quote there is a Submit in the Action Menu, so when a user click on the submit button then sales quote approval process triggers and
    sales quote saved with Approval status as "In Approval" .
    Requirement: Each time user click on the submit of sales quote then we have to record this action and update our BO for further calculation.
    Issue: All BO elements in the ActionValidation-Submit script file are accessible but they are read only so can not be modified.
              So when you click on the Submit then immediately after submit action event beforesave gets trigger, so we build logic here but issue is that we           are not  able to segerate this save even, I mean which SAVE is coming from the EXPLICIT save button on the UI or which save being triggered           from Submit Action.
    Resolution tried: We found only one script for the submit action ActionValidation-Submit script file so we implemented this script but here all BO                          elements are read only, we can not modify those elements.
                             Even we are not able to return any variable on the validation submit script. so only we can return true/false that says validation is                          success or not.
    My Question : How to capture the information in the event before save when user click on the submit on the sales quote.
                             So other than valiation script file is there any other appraoch by which I can acheive this. even in the global variable "this"  I also dont                          find any varaible that is setting as true/false that refers to action triggers on the sales quote.
    Thanks
    Asaad

    Thanks Meghana.. Appreciate your input.
    We are doing this but the issue we are encountering is after the submit if other user changes sales quote and click on the SAVE button then we dont want this save from SAVE button on UI, so always whenever user click on the submit from action menu in the sale quote then we need to capture user information at the submit click.
    Thanks
    Asaad

  • How to show an dropdown menu when user click on one point on lineseries?

    Hi all,
    I am new  in flex development.
    I am showing line series on the chart, I'd like to give some interaction, when user click on the "point" on the line, I'd like to show a dropdown menu, and react to user's choice on the menu item.
    Is it doable? Any sample or reference?
    Thanks in advance.
    /// Jack

    Cool, that definitely moving forward.
    I saw two questions here:
    1. I added mouseOver/mouseOut action to the LineSeries, it then react when I mouse over the line, instead of at the data point.
    2. How do I know the dataPoint's position and locate popmenu in that place? on other words, how do I have dropdown menu. I tried to use "this" as DisplayObjectContainer and send to Menu.createMenu, but seems not working.
    Here is the code pieces I am talking about:
    [Bindable]public var myMenu:Menu;
                // Create and display the Menu control.
                private function createAndShow():void {
                    Menu.
                    myMenu = Menu.createMenu(holder, myMenuData, true);
                    myMenu = Menu.createMenu(null, myMenuData, false);
                    myMenu.labelField="@label";
                    myMenu.show(10, 10);
                private function hideMenu():void {
                    myMenu.hide();
    <mx:series>
                        <mx:LineSeries mouseOver="createAndShow()" mouseOut="hideMenu()" sortOnXField="true"  xField="date1" yField="score1"  displayName="Score1">
    Thanks.

  • HT202159 I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to downlo

    I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to download

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Windows network shares disappearing when users are logged on to Mac

    We are having some problems with windows network shares disappearing when users are logged on to Mac computers.
    We have a number of Mac labs that users can logon to using their AD login credentials. Their network shares are saved on a windows file server. The ad plug has been configured on each client Mac as has the LDAP plug-in. It is configured to connect to the Xserve which is running as an OD master. The system preferences for the client Macs are being managed from the Xserve.
    The problem for the users is that they can log into the Mac no problem and they can see their network share appearing on the desktop and in the dock, but for some reason on random Macs and with random users the network share disappears. If they log off and log back in again the network share is still missing. As it happens randomly I can not put my finger on what the problem is.
    Most labs either have Intel iMacs running 10.4.11 or Intel iMacs running 10.5.5
    Any help will be appreciated
    Noel Patterson
    Southern Regional College
    Northern Ireland

    Mike,
    We need to know some basic scoping information to provide any further input.
    1)     
    Is the user prompted that the server will be shutting down?
    2)     
    Does Task Scheduler show that the task ran at the scheduled time?
    3)     
    Are there any errors in %windir%\tasks\schedlgu.txt?
    4)     
    Does the problem still occur if the machine is in its own OU with blocked inheritance?
    Does the problem still occur in a clean boot configuration with MSConfig
    Steps to clean boot machine:
    ================
    Start > Run > Msconfig > Select Services > click "check box", "Hide all microsoft services" > Disable all
    Start > Run > Msconfig > Select startup>  Disable all
    Reboot
    Thanks,
    ankit

  • When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?

    When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?
    I used the iframe code from Facebook's "Like Button" site; and inserted the code in the html widget popup box, then positioned it where I wanted it on my page and published. It looks fine (though I had to add "http" before my url to get it to show up).
    So, when a user clicks on button, a pop-up opens asking for Facebook password. When I (the user) enter a password, nothing happens after that. I thought the idea was that a user would be able to show their friends that they like my website. After I entered my password in pop-up after clicking on "Like" I went to my facebook page (a company page) to see if it showed that I (the user that clicked on "Like" on iweb) recommended the website. But nothing showed up. I thought maybe it was because Facebook associated my password as the admin for the Facebook page so didn't count it. But a friend tried it and same thing happened. I went back and on one page I put in another facebook code for a combo Like/Send button. It shows up but acted the same as the regular Like button.
    Questions:
    1. Is this the way the Like Button is suppose to work? Only benefit of Like button being that it just counts the clicks on the Like button and does NOT let users share their recommendation with their friends?
    2. If it's suppose to let users share their "Likes" with their friends, what did I do wrong? There were three types of code but in reading discussions, they all say to use iframe. (I used the first choice which I think was html for Javascript SDK and put that in my HTML Snippit box and the Like/Share button showed up on my iweb page next to the facebook icon and the words "likes this" but when I click it, I don't see instructions that it's sending my recommendation to my friends.)
    I must have done something wrong, but can't figure out what. Does anyone know? If the only benefit of the Like Button is the counter, it doesn't seem worthwhile.
    Thanks to anyone who can figure this out!  My website is couponsforfun.com

    You want something like this?
    http://home.wyodor.net/demoos/facebook/
    The send button sends the link to their friends in the address field with a message.
    They recieve a message in the inbox.
    There's no post on a page.
    If they want that, then they should share the link themselves.
    Perhaps it's best to study what facebook has to offer and how it works instead of guessing what it is supposed to do and be disappointed.

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • When I click on the - fire fox disappears from the task bar; it is still open but gone from the task bar, if I click on any icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Question
    When I click on the - to minimize fire fox, it does not close the window but the firefox icon disappears from the task bar; it is still open but gone from the task bar, if I click on any other icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Sorting and Grouping in Projects View

    In Projects view, when either of two of the three grouping options is selected, there are two sorts in effect: the groups themselves are sorted, and the contents of each group are sorted. These sorts are handled differently, depending on the grouping

  • How to Use Save_Text

    HI Friends,           i have downloaded material code, material type and po text in one text file by using read_text function.         now i want to upload it into new system how can i do that? i am using save_text function to  save it into new SAP s

  • ABAP oo problem

    Hi all I'm try to start with abap oo and have problem with code below. When i generate this all is ok. When try to activate there is error Statement 'LDB->read_spfli()' is not defined . please check your ... Anyone help ? PS. Using SAP 46c Regards Ba

  • What is Time Machine actually doing?

    During Time Machine backups, I always get curious as to what Time Machine is actually doing. For example, towards the end of a backup, TM is "Cleaning up...". What does that mean? I didn't realise TM made a mess to begin with. And also, when I click

  • Installation of Oracle Discoverer for PeopleSoft and Oracle apps(11.5.10)

    Hello Gurus, I hope I am in the right forum. I have been assigned to install Oracle Discoverer for Oracle ERP (11.5.10). We currently have a Oracle Discoverer environment for Peoplesoft. My questions are follows. 1. Can I use the existing Oracle Disc