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...

Similar Messages

  • Mouse Over event not dispatching properly.

    Hi,
    I am working on a scroll for iPhone, in which I'm using touch scrolling, it is working fine with less number of list items, but when I increases the nuber of items in scroll list, the mouse over event not propogates properly, I mean to say those events are overlapping due to some extra memory issue, can any one have any idea about it.
    I'm pasting code for your reference :
    public function IPhoneScroll( pContent:DisplayObjectContainer, pStage:Stage ) {
                                  _stage = pStage;
                                  _myScrollElement = pContent;
                                  _canvasHeight = _myScrollElement.height;
                                  start();
                                  // add handlers
                                  _myScrollElement.addEventListener(MouseEvent.MOUSE_DOWN, on_mouse_down);
                                  _myScrollElement.addEventListener(Event.ENTER_FRAME, on_enter_frame);
                        private function on_enter_frame(e:Event):void {
                                  if ( started )
                                            // decay the velocity
                                            if(_mouseDown) _velocity *= MOUSE_DOWN_DECAY;
                                            else _velocity *= DECAY;
                                            // if not mouse down, then move the element with the velocity
                                            if (!_mouseDown)
                                                      var textHeight:Number = _myScrollElement.height;
                                                      var y:Number = _myScrollElement.y;
                                                      var bouncing:Number = 0;
                                                      // calculate a bouncing when the text moves over the canvas size
                                                      if (y > 0 || textHeight <= _canvasHeight) // textHeight <= _canvasHeight => when the item is smaller than the stage.height, align to the top
                                                                bouncing = -y * BOUNCING_SPRINGESS;
                                                      }else if( y + textHeight < _canvasHeight){
                                                                bouncing = (_canvasHeight - textHeight - y) * BOUNCING_SPRINGESS;
                                                      _myScrollElement.y = y + _velocity + bouncing;
                        // when mouse button up
            private function on_mouse_down(e:MouseEvent):void
                if (!_mouseDown)
                    // get some initial properties
                    _mouseDownPoint = new Point(e.stageX, e.stageY);
                    _lastMouseDownPoint = new Point(e.stageX, e.stageY);
                    _mouseDown = true;
                    _mouseDownY = _myScrollElement.y;
                                            // add some more mouse handlers
                    _stage.addEventListener(MouseEvent.MOUSE_UP, on_mouse_up);
                    _stage.addEventListener(MouseEvent.MOUSE_MOVE, on_mouse_move);
            // when mouse is moving
            private function  on_mouse_move(e:MouseEvent):void
               if (_mouseDown)
                    // update the element position
                    var point:Point = new Point(e.stageX, e.stageY);
                    _myScrollElement.y = _mouseDownY + (point.y - _mouseDownPoint.y);
                    // update the velocity
                    _velocity += ((point.y - _lastMouseDownPoint.y) * SPEED_SPRINGNESS);
                    _lastMouseDownPoint = point;
            // clear everythign when mouse up
            private function  on_mouse_up(e:MouseEvent):void
                if (_mouseDown)
                    _mouseDown = false;
                    _stage.removeEventListener(MouseEvent.MOUSE_UP, on_mouse_up);
                    _stage.removeEventListener(MouseEvent.MOUSE_MOVE, on_mouse_move);
                        public function release():void
                                  _myScrollElement.removeEventListener(MouseEvent.MOUSE_DOWN, on_mouse_down);
                                  _myScrollElement.removeEventListener(Event.ENTER_FRAME, on_enter_frame);
                                  _myScrollElement = null;
    The highlighted part is working properly for less items but not for more number of items, lets say 200 movieclips in scroll lists.
    Please help me on this, thanks in advance.
    Vipul

    Hello.
    Look I have an idea, I donu2019t know if you already try it.
    Please give the format that you want percentage, decimals etc...
    In the Excel where the charts are being directed
    Then redirect de chart to the same cells, these with the porpoise of refreshing
    Now each serie have the format.
    Please let me now what happen with these

  • 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

  • Double Click Event not fired for IE 11 with compatibility mode for HTML elemnt table

    Hi,
    I am facing an issue with Double click event(not getting fired on double click of mouse) for IE 11 with compatibility mode on HTML element "table" for Windows 7 64 bit machine.It runs fine on IE 10 with compatible mode with Windws 7 64  bit
    machine -- double click event.
    Can you please help to resolve the issue?
    Thanks and Regards,
    Yogesh

    Hi,
    f12>Debug tab, click the 'start' button.....(select break on all exceptions from the dropdown on the Debug tab)
    click your table and correct any errors that are listed in the Console of the developer tool.... probably you are using attachEvent I/o addEventListener. You should be using addEventListener for IE9 and higher and other web browsers.(it the w3c standard
    (recommendation).
    Post questions about html, css and scripting for website developers to the MSDN IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
    Rob^_^

  • 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!

  • Rollover event not playing movie in buttons/gotoandPlay function not playing frames

    This web site has 7 buttons (each button plays a different movie/each movie(.flv) has a stop action at frame 1). The first 3 buttons (button set 1) exist on the timeline from frames 1 to 28. Frame 29 has a blank key frame for the 1st 3 buttons. There is action script for the 3 buttons in frame 1. Next 4 buttons (button set 2) exist on the timeline from frame 30 to 90 as well action script.
    The stop actions are at frames 29,50,69,90. Labels are at frames 1,30,51,70. When testing the movie button set 1 functions as expected (the rollover event for each button plays its movie and selecting the button plays the correct frame) . Button set 2 is not working (the rollover event for each button is not playing the movie and selecting the button does not play the frame)
    Using cs4, as3
    This is my 1st attempt at an interactive project like this and am not sure how to make all the pieces work together. My action script is included below. I would appreciate a breakdown of why the movies are not playing as well as the gotoandPlay function for button set 2 and how can this be fixed. No errors are reported when I test the movie the buttons for button set 2 just do not function.
    Thanks in advance.
    AS frame1:
    import caurina.transitions.*;
    import caurina.transitions.properties.*;
    DisplayShortcuts.init();
    conbut.addEventListener(MouseEvent.ROLL_OVER, conbut_ROLLOVER);
    function conbut_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(contact_1, {_frame:10, time:0.2, transition:"linear"});
        var over:Over = new Over();
        over.play();
    conbut.addEventListener(MouseEvent.ROLL_OUT, conbut_ROLLOUT);
    function conbut_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(contact_1, {_frame:0, time:0.5, transition:"linear"});
    newxbut.addEventListener(MouseEvent.ROLL_OVER, newxbut_ROLLOVER);
    function newxbut_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(newsx, {_frame:10, time:0.2, transition:"linear"});
        var over:Over = new Over();
        over.play();
    newxbut.addEventListener(MouseEvent.ROLL_OUT, newxbut_ROLLOUT);
    function newxbut_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(newsx, {_frame:0, time:0.5, transition:"linear"});
    gall.addEventListener(MouseEvent.ROLL_OVER, gall_ROLLOVER);
    function gall_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(gal, {_frame:10, time:0.2, transition:"linear"});
        var over:Over = new Over();
        over.play();
    gall.addEventListener(MouseEvent.ROLL_OUT, gall_ROLLOUT);
    function gall_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(gal, {_frame:0, time:0.5, transition:"linear"});
    function spineasel_top_mc() {
        easel_top_mc.play();
    newxbut.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_15);
    function fl_ClickToGoToAndPlayFromFrame_15(event:MouseEvent):void
        gotoAndPlay("news..");
    gall.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_9);
    function fl_ClickToGoToAndPlayFromFrame_9(event:MouseEvent):void
        gotoAndPlay("gallery..");
    conbut.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_10);
    function fl_ClickToGoToAndPlayFromFrame_10(event:MouseEvent):void
        gotoAndPlay("contact..");
    AS frame30:
    import caurina.transitions.*;
    import caurina.transitions.properties.*;
    DisplayShortcuts.init();
    inv_gallery_btn.addEventListener(MouseEvent.ROLL_OVER, inv_gallery_btn_ROLLOVER);
    function inv_gallery_btn_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(gallery1a, {_frame:16, time:0.2, transition:"linear"});   
    inv_gallery_btn.addEventListener(MouseEvent.ROLL_OUT, inv_gallery_btn_ROLLOUT);
    function inv_gallery_btn_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(gallery1a, {_frame:0, time:0.5, transition:"linear"});
    home_1.addEventListener(MouseEvent.ROLL_OVER, home_1_ROLLOVER);
    function home_1_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(home, {_frame:16, time:0.2, transition:"linear"});
    home_1.addEventListener(MouseEvent.ROLL_OUT, home_1_ROLLOUT);
    function home_1_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(home, {_frame:0, time:0.5, transition:"linear"});
    inv_news_btn.addEventListener(MouseEvent.ROLL_OVER, inv_news_btn_ROLLOVER);
    function inv_news_btn_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(news_1a, {_frame:16, time:0.2, transition:"linear"});
    inv_news_btn.addEventListener(MouseEvent.ROLL_OUT, inv_news_btn_ROLLOUT);
    function inv_news_btn_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(news_1a, {_frame:0, time:0.5, transition:"linear"});
    contact_1a_inv.addEventListener(MouseEvent.ROLL_OVER, contact_1a_inv_ROLLOVER);
    function contact_1a_inv_ROLLOVER(e:MouseEvent):void
        Tweener.addTween(contact1, {_frame:16, time:0.2, transition:"linear"});
    contact_1a_inv.addEventListener(MouseEvent.ROLL_OUT, contact_1a_inv_ROLLOUT);
    function contact_1a_inv_ROLLOUT(e:MouseEvent):void
        Tweener.addTween(contact1, {_frame:0, time:0.5, transition:"linear"});
    inv_news_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_20);
    function fl_ClickToGoToAndPlayFromFrame_20(event:MouseEvent):void
        gotoAndPlay("news..");
    inv_gallery_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_21);
    function fl_ClickToGoToAndPlayFromFrame_21(event:MouseEvent):void
        gotoAndPlay("gallery..");
    contact_1a_inv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_22);
    function fl_ClickToGoToAndPlayFromFrame_22(event:MouseEvent):void
        gotoAndPlay("contact..");
    home_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_23);
    function fl_ClickToGoToAndPlayFromFrame_23(event:MouseEvent):void
        gotoAndPlay("home..");

    Steps tried so far to troubleshoot functionality of buttons in 2nd set:
    -         Recreated the .flvs for all buttons in 2nd set. Re-imported to flash and swapped with existing video
    -         Thru event generator generated rollover and rollout code for each button
    -         Commented out the stop action for each video (stop actions remained active on main timeline on stage)
    -         Retested movie – video continuously looped on all buttons in 2nd set, GoToAndPlay function still not working
    -         In addition to the commented out stop actions for each video also commented out stop actions on main timeline for buttons in 2nd set
    -         Retested movie – Rollover functionality which causes the video to play works; GoToAndPlay function plays the correct frame but continues to play through to end of timeline

  • JSC on Tomcat 5.5.20 - Session/Applicaton Bean events not firing

    Hi,
    I am running a JSC app on Tomcat 5.5.20.
    Session and application bean events init and destroy are not firing.
    they work fine on my development machine using the Sun App server..
    Anyone have any ideas?
    Thanks
    Colin

    Hi,
    This is actually a Tomcat bug that was introduced from versions 5.5.20 and higher.
    If you create your application in a path that contains spaces you will encounter this problem.
    The workaround is to create your application at a path with no spaces.
    Here's the bug on Tomcat's website:
    http://www.mail-archive.com/[email protected]/msg37222.html
    It should be fixed in Tomcat 5.5.24
    You won't even need to create a listener or add any jar files.
    Hope this helps
    Yousuf

  • 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[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Creating mouse rollover events on tab selectors in Swing

    Hi,
    I have a jTabbedPane on which I have placed several panels to make tabs.
    Here are the two problems.
    1.How can I control the background color of the tab selector(where the title of the tab resides) when its tab is selected. I have been able to set dynamically the unselected ones.
    2. How can I change the color of the text in the title of the tab when the mouse rollovers the tab selector. When a mouse goes over the selector, the text in the selector needs to change to blue. When the mouse leaves the selector the text color needs to go back to black. I need to capture the event for the selector part only.
    I have been able to do it with buttons but how can I do it with tab selectors?
    Thanks for your help.

    I just did this quick but hopefully it should help you with the mouse events, simply get the rectangles that are associated with the tabs, and dectect when the mouse is inside of one, or not inside of one
    public class TabbedPaneExample {
         JTabbedPane tabbedPane;
         Rectangle r[];
         public TabbedPaneExample() {
              tabbedPane = new JTabbedPane();
              tabbedPane.addTab("PANEL1", new JPanel());
              tabbedPane.addTab("PANEL2", new JPanel());
              tabbedPane.addTab("PANEL3", new JPanel());
              JFrame frame = new JFrame("TabbedExample");
              frame.setSize(400, 400);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(tabbedPane);
              frame.setVisible(true);
              //Get the rectangles associated with each tab
              TabbedPaneUI ui = tabbedPane.getUI();
              r = new  Rectangle[3];
              for (int j = 0; j < 3; j++)
                   r[j] = ui.getTabBounds(tabbedPane, j);
              //add a MouseMotionListener to detect when a mouse enters a tab
              tabbedPane.addMouseMotionListener(
                   new MouseMotionAdapter() {
                        public void mouseMoved(MouseEvent e) {
                             for (int j = 0; j < 3; j++)
                             if (r[j].contains(e.getPoint()))
                                  //put your code for changes here
                                  System.out.println("inside a tab");
         public static void main(String args[]) {
              TabbedPaneExample tp = new TabbedPaneExample();
    }Hope that helps

  • Print event not firing

    Hi all, first time poster here so be kind
    I have 2 events to be captured under ItemEvent for the Sales Order form.
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
    oFilter.AddEx("139")
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
    oFilter.AddEx("139") ' Sales Order
    SBO_Application.SetFilter(oFilters)
    For the form_data_add event, I question whether they really want to post, and this works fine, but for some reason the et_PRINT isn't firing at all...
    Under ItemEvent...
                ' Capture SOR printing so can check for back orders
                ' REMOVED BECAUSE CANNOT GET TO WORK
                If pVal.FormTypeEx = "139" And _
                   pVal.EventType = SAPbouiCOM.BoEventTypes.et_PRINT And _
                   pVal.BeforeAction = True Then
                    oForm = SBO_Application.Forms.Item(pVal.FormUID)
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    I have put a breakpoint at the first 'if' statement, and it isn't stopping, suggesting the event registering isn't working.
    Extra info: I am constantly starting and stopping the addon through Visual Studio, incase this might be part of the problem.
    If anyone could help, I would be grateful,
    Regards
    Paul

    I have already tried capturing the button event, but that isn't working either.
    The code used is below:
    changed from ItemEvent MenuEvent... type
    MenuEvent..
    If pVal.MenuUID = "520" And pVal.BeforeAction = True Then
                Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
                If oForm.TypeEx = "139" Then
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    End If
    And all of my registered events are below...
        Private Sub RegisterSAPEvents()
            ' Register Event Handling
            Dim oFilters As SAPbouiCOM.EventFilters = New SAPbouiCOM.EventFilters
            Dim oFilter As SAPbouiCOM.EventFilter
            ' Menus
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
            oFilter.AddEx(v_stockHist_MenuID)
            oFilter.AddEx("520")
            ' Forms
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History double click for grid
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History Item choose from list
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
            oFilter.AddEx(v_stockHist_FormType)
            ' Question new SOR?
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
            oFilter.AddEx("139") 'SOR
            ' Key Press for Stock History Form
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_KEY_DOWN)
            oFilter.AddEx(v_stockHist_FormType)
            ' SOR Print
            ' COULD NOT GET TO WORK, SO WILL USE MENU EVENT 520 INSTEAD
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
            oFilter.AddEx("139") ' SOR
            ' Check for new SOR opening
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
            oFilter.AddEx("139") ' SOR
            ' Set Event Handlers
            SBO_Application.SetFilter(oFilters)
        End Sub
    I have another form which I have created, and all events work for that.
    Edited by: Paul Fearn on Jun 20, 2008 4:07 PM

  • 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.

  • Event scriptions created on standard business events not firing

    We have created a subscription and written custom code in the standard business event oracle.apps.eam.workorder.created . It should fire after a work order is created, but somehow our code is not getting executed. Tried with phase <100 and >=100
    Is there anything else that we need to do?
    Appreciate your help.
    Its in R12.
    Thanks
    Balaji

    For future reference, you have to set the Enable Workflow for Workorders flag in the EAM Parameters form in order to get the seeded business events to fire. If you only want to use the business events and not the workflow, then you could modify the workflow to bypass the approval.
    Edited by: 986824 on Feb 7, 2013 9:26 AM

Maybe you are looking for