BROWSER_INVOKE Event Never Fired

I am trying to get the BROWSER_INVOKE event to fire in my air application.  I have followed the instruction on the adobe site and use the example install app badge code.  However the event never get fired.  I was wondering if it is because the example app uses the installApplication as opposed to launchApplication api.   If so is there a way to install then use launchApplication so the BROWSER_INVOKE Event will get fired?
Thanks for the help.

I have taken some time to generate a super simple app to show my problem.  If someone could take a look and let me know why it is not work it would really help me out.   I an new to AIR development so it could be something really dumb.   Also I have set the allowBrowserInvocation to true and false and the app start starts but either way I do not get the event.
I first thought it was the installApp call but the docs say it will also call the event.
The Sample Web Site which is nothing more the the contents of the Install Badge Code is at.
To test goto http://host/default_badge.html
The HTML And Install Button
http://dl.dropbox.com/u/23800478/Sites.zip
The Application
http://dl.dropbox.com/u/23800478/testit.zip

Similar Messages

  • Why Obscure Event is never fired?

    I have and app in Windows Phone 8.1 Silverlight and I want to detect when lock screen is activated... I tried using Obscure Event this way:
    On Main Constructor:
    App.RootFrame.Obscured += RootFrame_Obscured;
    and then...
    void RootFrame_Obscured(object sender, ObscuredEventArgs e)
    Debug.WriteLine("OnObscured");
    ...just to test if this event was firing... but even when I activate the Lock Screen, this event is never fired!
    Am I doing something wrong?

    Hello,
    Please verify that the type of App.RootFrame is
    PhoneApplicationFrame. Also make sure that you are not running under the debugger and that your app is running directly from the layout.
    Thanks,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time

    <Problem>
    My requirement is to hide flash object on browser. However, If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time. Is this a bug of Flex? (or Flash Player?)
    <Sample Code>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              initialize="app_initialize(event);" creationComplete="app_creationComplete(event);" >
    <mx:Script>
            <![CDATA[
            import mx.events.FlexEvent;
        private function app_initialize(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application initialize.");
        private function app_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application creation complete.");
        private function button_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "button creation complete.");
            ]]>
        </mx:Script>
        <mx:Button id="testButton"  label="button"  creationComplete="button_creationComplete(event);"/>
    </mx:Application>
    <Steps to reproduce>
    1) Dowload the following samples
    MySwf-src.zip
    https://files.acrobat.com/a/preview/c6b7a191-c6c4-486f-9345-e2b5c21a4c0b
    TestSwf.zip
    https://files.acrobat.com/a/preview/98e613e1-63b1-4b2f-93f3-f6e4f4a27f24
    2) Unzip TestSwf.zip.
    3) Copy MySwf.swf, TestInvisible.html, and TestVisible.html to "c:\inetpub\wwwroot\". (Need to install the IIS.)
    4) Visit "http://localhost/TestVisible.html" via IE. notice the creationComplete event fired after initialize event immediately.  -- Correct
    5) Visit "http://localhost/TestInvisible.html" via IE. notice the creationComplete event fired a long time after initialize event.  -- Incorrect
    <Environment>
    Win8.1x64+IIS8.5+IE11+Flash player(13.0.0.182)
    <Note>
    If the flash object is placed in 1px or larger div, the creationComplete event is fired immediately.
    The problem occurs with other browsers(IE9,IE10,FF,Chrome) too.

    Thank you for your response. The computers are indeed running Flash Pro CC 13.1.0.226. I tried to generate a minidump file on four different computers where Flash Pro hung, but was not able to do so on any of them as Flash Pro makes the entire system unresponsive. I get the spinning circle cursor and then the GUI of all apps greys out and fails to update. I don't actually get any sort of error message; everything simply stops responding.
    I was probably unclear above; even if I can alt-tab I can't really interact with any other programs once Flash Pro hangs beyond one or two mouse clicks. So on some computers I could right-click on the process in Process Explorer and choose to create a minidump, which then froze, or I might right-click on the process and have it immediatly freeze. I've experienced about two dozen crashes and I've never been able to really use another program or even kill the Flash process in task manager. I also have to power off the computer by holding down the power button, since while I might be able to open the Start menu I can't reach the point of being able to shut it down without it freezing.
    From what I was able to see in Process Explorer, Flash Pro was using <1% CPU and 120M private / 170M working memory.

  • SP01 events not firing

    Hi, I've upgraded from sap bo 2005 A to SP01 (PL7).
    I referenced the new COM objects, and so I am able to see in the int the SAPbouiCOM.BoEventTypes enum the new events... particularly SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
    The problem is that this event is never firing... I don't know if I did something wrong while updating, but I don't think so... any suggestions?
    btw, I'm not filtering the events with eventfilter or something like that...

    If anyone wants the response to this, someone answered in another thread:
    et_FORM_DATA_LOAD event handling
    [quote]
    the et_FORM_DATA_LOAD enum constant is valid only for FormDataEvent (2005A SP1), while you are trying to use it in ItemEvent event handler...
    You should use the FormDataEvent handler instead.
    [/quote]
    Too bad this only works with UDOs :s

  • Flex mobile activate event not fired

    Hi,
    I have tried in many ways to listen for the event triggered each time I open an application.
    I am developing an Android app (Flex 4.6, air 3.1) and run it on a real device.
    The activate event, is never fired.
    Any idea?
    I am using creationComplete as a substitute, but that is fires only the first time you open the
    app, not when you "resume" it.
    Any suggestion?
    ps: on a side note deactivate works correctly.

    it wont get fired first time, when app get activated from dromant then it works.

  • [svn] 4015: Fix an RTE when a pop up is removed before its FlexEvent. CREATION_COMPLETE event is fired.

    Revision: 4015
    Author: [email protected]
    Date: 2008-11-04 11:34:41 -0800 (Tue, 04 Nov 2008)
    Log Message:
    Fix an RTE when a pop up is removed before its FlexEvent.CREATION_COMPLETE event is fired.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17886
    Reviewer: Alex
    tests: checkintests, Managers/focusManager
    FocusManager.as
    In the FlexEvent.CREATION_COMPLETE handler don't activate a pop up if the pop up does not have a parent.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17886
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/managers/FocusManager.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • FDM event scripts firing twice during data loads

    Here's an interesting one. I have added the following to three different event scripts (one at a time, ensuring only one of these exists at any one time), to clear data before loading to Essbase:
    Event Script content:
    ' Declare local variables
    Dim objShell
    Dim strCMD
    ' Call MaxL script to run data clear calculation.
    Set objShell = CreateObject("WScript.Shell")
    strCMD = "D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMAXL.cmd D:\Test.mxl"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    MaxL Script:
    login ******* identified by ******* on *******;
    execute calculation 'FIX("Member1","Member2") CLEARDATA "Member3"; ENDFIX' on *******.*******;
    exit;
    However, it appears that the clear is carried out twice, both before and after the data has been loaded to Essbase. This has been verified at each step by checking the Essbase application log:
    No event script:
    - No Essbase data clear in application log
    Adding above to "BefExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "AftExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "BefLoad" event script:
    - Script is NOT executed after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed).
    - Script is executed AFTER the data load to Essbase when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Some notes on the above:
    1. "BefExportToDat" and "AftExportToDat" are both executed twice, before and after the "Target System Load" modal popup. :-(
    2. "BefLoad" is executed AFTER the data is loaded to Essbase! :-( :-(
    Does anyone please have any idea how we might execute an Essbase database clear before loading data, and not after we have loaded fresh data? And perhaps on why the above event scripts appear to be firing twice?! There does not appear to be any logic to this!
    BefExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    AftExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    BefLoad - Essbase Application Log entries:
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+

    Hi Larry,
    As mentioned, our exports do not appear to be generating the "-B.Dat" and "-C.Dat" files at present. However, you are correct with the Export and Load event scripts firing twice (once for the main TB file and again for the journal file). Does this also mean it could continue to fire an additional two times for the "-B.Dat" and "-C.Dat" files?
    On the last run, the output was as follows with the modified scripts:
    After clicking on Export in Workflow, the Target System Load modal popup is displayed, and the first two files have been generated:
    14.24.15.0527_BefExportToDat.txt
    14.24.17.0617_AftExportToDat.txt
    After clicking on OK in the Target System Load modal popup, the actual load to Essbase takes place. A further six files are generated:
    14.24.21.0289_BefLoad.txt
    14.24.22.0117_AftLoad.txt
    *14.24.22.0152_BefExportToDat-A.txt*
    *14.24.22.0414_AftExportToDat-A.txt*
    *14.24.22.0433_BefLoad-A.txt*
    *14.24.22.0652_AftLoad-A.txt*
    This makes a lot more sense, since one can see that the event scripts are being run a second time against the journal files during the data load. Many thanks, this solves my problem as I can now place my script where I want in the process chain. It's just a shame that there are not separate event scripts to distinguish between the various .Dat exports/loads, which are clearly occuring at separate times in the process chain.
    Many thanks! :-)
    P.S. Updated script below if anyone wishes to use it:
    Sub BefExportToDat(strLoc, strCat, strPer, strTCat, strTPer, strFile)
    Dim strF, fso, tf, t, temp, m, miliseconds, strSuf
    t = Timer
    temp = Int(t)
    m = Int((t-temp)*1000)
    miliseconds = String(4 - Len(m), "0") & m
    strF = "D:\TEST\" & Replace(Time, ":", ".") & "." & miliseconds & "_BefExportToDat"
    strSuf = UCase(Left(Right(strFile,6),2))
    If strSuf = "-A" Or strSuf = "-B" Or strSuf = "-C" Then
    strF = strF & UCase(strSuf) & ".txt"
    Else
    strF = strF & ".txt"
    End If
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set tf = fso.CreateTextFile(strF, True)
    tf.WriteLine(strFile)
    tf.Close
    Set fso = Nothing
    End Sub

  • WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help

    Hi Grant,
    WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help..
    I need a help from you.
    1) I have developed an form to browse the client machine and upload the file on server / table
    2) Registered the form in Oracle Apps 11.5.10.
    3) Currently i am able to open the File_Dialog and browse throught the clients machine
    But when ever user selects any file and says Open, i am not able to retrieve the file name. wHEN-CUSTOM-ITEM-EVENT is not
    firing. I am sure how we can invoke this CUSTOM-ITEM-EVENT.
    To devlop the form i have referred PERWSIMG.fmb - of Oracle (Apps) HRMS which uploads the employee photo in the Database.
    Hence i have used the same java code / Implementaion Class.
    Please help...
    Regards
    Sameer

    Hi Francois,
    You were right. I re-loaded the zip file and the original version works. Odd, as I don't remember ever modifying those files.
    But my original issue still remains.
    The only code I've added is this:
    Color mycolor = this.getBackground() ;
    setBackground(mycolor);to the CalendarFrame constructor. How could this be causing the trigger to not fire?
    Could it be the way I created the bean? I copied all the java files to my project, attached the libraries, created a deployment profile. Everything compiles without errors or warnings, and the jar is created without issues. The java console doesn't give any errors either.
    Thanks for all your help,
    A
    Edited by: Abigail Parmar on Mar 26, 2009 1:01 PM

  • MenuBar mouse rollover event not firing

    Is MenuBar in SDK 4.1/4.5 a little flaky to anyone else?
    The rollover events fire as they should at first, but if you move the mouse fast enough, it seems to screw up eventually and at that point only the itemRollOut event is firing (no itemRollOver at all, even though the mouse clearly moved over a new menu item!) 
    Also sometimes I'm able to get the menu item's background-highlight effect to remain, if I move the mouse cursor away fast enough.  Is this a crummy or little used component, or what?  I'm using Halo only...

    Expected response on this, but I can add that it seems to happen mostly when a drop down menu has only one item listed.  The plan is to add more (obviously) but it's a little odd - I'm wondering if anyone can reproduce the same result with a MenuBar menu that only has one option.  Of course it works "at first", you have to play around with it a bit for the events to get out of sync, so it's tough...

  • How to stop events from firing

    helo..
    is there a way to stop an event from firing.. or making an effect event if it was raised..
    for example in my application.. i have a JList which has a ListSelectionListener and a PopupListener... when i right-click.. the populistener fires.. and also my selection (say i made a select-all-items) gets changed.

    Remove one if the listeners??
    /Kaj

  • OnRowUpdating Event not firing in my DataGrid in custom web part in my production SharePoint 2013 Foundation instance

    Hi,
    I have a custom visual web part that I've developed for SharePoint 2013 Foundation.  I am using Visual Studio 2013 to develop this web part. 
    In my visual web part I have GridView that I use to update data in a SQL 2008 R@ Server Database.  In dev and test the OnRowUpdatingEvent fires properly, but in production it does not.  I have the same version of SharePoint running on dev/test/prod. 
    The main difference between the three environments is the hardware.  Production has a much beefier sever than dev and test.  Dev and test are also virtual machines where production is.
    At first I thought my problem was cache related, and I made adjustments per this article:
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    That didn't help because the event is still not firing.  I took my test application and pointed it to the production database, and that event still fires in test but not in production. So I believe that eliminates database permission errors since I'm
    using the same credentials in both instances.
    My guess is that I need to change some settings in the production environment, but I'm not sure at this point what that might be.
    Any suggestions on what settings to look at?
    Brian
    Brian Hochgurtel
    My blog

    Try this solution :
    http://stackoverflow.com/questions/5893373/c-sharp-rowupdating-method-not-called-when-update-is-clicked-in-a-gridview

  • CS Extension, Script UI and events not firing in Photoshop CS5

    Hi!
    I'm a bit confused with two technologies dealing with SWF panels. There was a technique in the previous versions of Photoshop when SWF content has been loaded into a ScriptUI Window. Is it changed? Or does it still work together with CS Extension extensions?
    I have a script that creates ScriptUI Window and then loads an SWF into it. It has a custom 'mousemove' event listener that helped to move this window around the screen. Now - in the new Photoshop CS5 (I tried 12.0.1 as well) - it seems like the 'mousemove' event is not fired for ScriptUI windows containing SWFs.
    I'm not sure, maybe it has something to do with the new SWF treament in CS5?
    If I'm wrong, then I'm sorry, if this question doesn't fall into this forum's area of expertise.
    Thank you!

    10x,
    You saved my ***!
    It actually has to include both the PHSP "AND" the PHXS host names for it to work - this is stupid!
    If I only use PHXS the extension manager is not able to install the extension, saying it cannot find a host that matches the manifest (even though my photoshop IS the extended variation, so in a sense it's more acurate manifest-wise), and if I only use the PHSP, it IS loaded but doesn't appear in the application!
    AND THERE IS NO DOCUMENTATION ON THIS PHENOMENON ANYWHERE!
    THIS IS BEYOND IRRESPONSIBLE!
    Thank you very much david, but please, as you are an adobe employee, get this message to the right people, if you can.
    I know the corporate agenda would probabely be the incentivise people to register to the 1500$ program to get the extension-builder, by keeping the alternative inconvenient, but this issue is beyond inconvenient, it's border-line cruelty!

  • What event is fired when

    Hi Everyone,
    I have a page that is displayed using
    CompleteAuditController *screen = [[CompleteAuditController alloc] initWithNibName:@"CompleteAuditWindow" bundle:nil];
    screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:screen animated:YES];
    [screen release];
    So when this is done on the CompleteAuditWindow page
    [self dismissModalViewControllerAnimated:YES];
    What event (if any) is fired on the caller page??
    in essence, I need to know when this page become the active page on the stack.
    Thank you
    take care
    tony

    Both [viewWillAppear:|http://developer.apple.com/iphone/library/documentation/UIKit/ Reference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/viewWillAppear:] and [viewDidAppear:|http://developer.apple.com/iphone/library/documentation/UIKit/R eference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/viewDidAppear:] should be sent to the parent controller object. - Ray

  • Shopping Cart Workflow - "Wait for change event" not firing?

    Hi there,
    I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
    Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
    I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
    When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
    We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
    Any ideas what would cause the "change event" not to fire?
    Thanks for the help
    Lynton

    Hey Masa,
    You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
    4     "High" (workflow is never restarted when changes are made)
    3     "Medium" (WF restarted conditionally when changes are made)
    2     "Low" (workflow is always restarted when changes are made)
    1     "None" (changes to the object are not allowed)
    0     "Not defined"
    Thanks for the help
    Lynton

  • Tab key event not fired in JTabbedPane

    Hello,
    I wanted to add the functionality of moving between tabs when Ctrl+Tab is pressed like Windows tabs.
    But the tab key listener event is not getting fired by pressing Tab. For all the other key pushes it is working good. It this a problem with Java? Any workarounds?
    Here is the sample code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestTab extends JFrame
         public void drawGUI()
              //getContentPane().setLayout(new GridLayout(1, 1));
              JTabbedPane lTabbedPane = new JTabbedPane();
              JPanel lFirstPanel = new JPanel();
              lFirstPanel.add(new JLabel("First Panel"));;
              JPanel lSecondPanel = new JPanel();
              lSecondPanel.add(new JLabel("Second Panel"));;
              lTabbedPane.addTab("Tab1", null, lFirstPanel, "Does nothing");
              lTabbedPane.addTab("Tab1", null,lSecondPanel, "Does nothing");
              getContentPane().add(lTabbedPane);
              lTabbedPane.addKeyListener(new KeyAdapter()
                   public void keyPressed(KeyEvent lKeyEvent)
                        System.out.println(lKeyEvent.getKeyText(lKeyEvent.getKeyCode()));
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
         public static void main(String[] args)
              TestTab lTestTab = new TestTab();
              lTestTab.drawGUI();
              lTestTab.setSize(200, 200);
              lTestTab.setVisible(true);

    The KeyPressed events for TAB and CTRL-TAB are typically consumed by the KeyboardFocusManager for component traversal. What you have to do is adjust traversal keys and add CTRL-TAB as an action of your JTabbedPane. This is usually done with the InputMap/ActionMap, not a KeyListener:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) {
            Set tabSet = Collections.singleton(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
            KeyStroke ctrlTab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_DOWN_MASK);
            final int FORWARD = KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS;
            final JTabbedPane tp = new JTabbedPane();
            //setFocusTraversalKeys to remove ctrl-tab as a forward gesture
            tp.setFocusTraversalKeys(FORWARD, tabSet);
            for (int i=0; i<6; ++i) {
                JPanel p = new JPanel(new GridLayout(0,1));
                JTextArea area = new JTextArea();
                area.setFocusTraversalKeys(FORWARD, Collections.EMPTY_SET);
                p.add(new JScrollPane(area));
                area = new JTextArea();
                area.setFocusTraversalKeys(FORWARD, Collections.EMPTY_SET);
                p.add(new JScrollPane(area));
                tp.addTab("tab " + i,p);
            //add ctrlTab as an action to move to next tab
            Action nextTab = new AbstractAction("nextTab") {
                public void actionPerformed(ActionEvent evt) {
                    int idx = tp.getSelectedIndex();
                    if (idx != -1) {
                        idx = (idx + 1) % tp.getTabCount();
                        tp.requestFocusInWindow();
                        tp.setSelectedIndex(idx);
            InputMap im = tp.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
            im.put(ctrlTab, nextTab.getValue(Action.NAME));
            tp.getActionMap().put(nextTab.getValue(Action.NAME), nextTab);
            JFrame f= new JFrame("X");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(tp);
            f.setSize(400,300);
            f.setVisible(true);
    [/code[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How to change the background color only for one HTML-Portlet?

    Hi all, I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style. I want to change the background-color only for this one HTML-Portlet: <html> <header><title>Test</title></header> <body bgcolor="#999999"> Test </body> </h

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small s

  • Background scheduling

    Dear Experts, We have scheduled a background job using the program of IP30 and creating a variant for it. Now we want to add some more plans . But now the variant we are now able to see . But still the background job is scheduling as we created witho

  • ALL SAP Solution Manager Transaction Code

    Dear experts, is there any document or transaction code listing all existing transactions code related to Solution Manager? Especially for aministrator profil. Thank you very much. Best regards, Pascal.

  • How do I set up Firefox to clear my browsing history and tabs when I quit?

    Unless I go to settings and clear everything before I quit Firefox, next time I open it I am on the last page I was browsing during the previous session. I would like Firebox to open in the home page, with all tabs and history cleared.