Why is the itemRenderer null after a tab key in my DataGrid ?

Hello all,
I progress in my Flash application Thanks to all for your help !
But now, I have a very strange problem:
In my DataGrid, when I click on an item to edit it, in the ITEM_EDIT_BEGINNING event, the DataGridEvent.itemRenderer is set and has the correct value.
When I use the TAB key, I go on the next column, the ITEM_EDIT_BEGINNING on the newly selected field is triggered, but in that case, the DataGridEvent.itemRenderer is null.
I need that itemRenderer to have its x, y, width and height.
Do you have an idea why it's null ?
Thanks for all

You may want to feedback to Apple
http://www.apple.com/feedback

Similar Messages

  • Why all the errors appear after some hours on pc

    Why all the errors appear after some hours on pc             

    Thanks for reply but the 2 HDD oki think the PS is 200 W that made that problem ?Or from TEMP ? i made it more able to flow the air  & become better now     

  • The correct approach to intercept TAB key

    Dear Experts,
    I have developed a GUI out of javax.swing. The GUI consists of JFrame, several JPanels and javax components, such as JTextField, JLabel, JComboBox, JTable and many more.
    Now, I want to change the behavior when user presses TAB key. By default TAB key moves focus from a component to another component. How can I disable this?
    I come to two alternatives that I am not sure which one is the correct approach. Could you please advise me?
    Alternative 1.
    Use key binding on GlassPane.
    Alternative 2.
    Use event-handling on GlassPane.
    If those alternatives are not the best one, could you please provide another alternative?
    I have tried the following, but they didn't work...
    Action doNothing = new AbstractAction() {
        public void actionPerformed(ActionEvent e) {
            System.out.println("Tab-key is pressed.");
    cmbPCode.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "doNothing");
    cmbPCode.getActionMap().put("doNothing", doNothing);or
    getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "doNothing");
    getRootPane().getActionMap().put("doNothing", doNothing);where cmbPCode is a JComboBox that receives focus when the GUI shows up.
    Thanks for your help,
    Patrick
    Edited by: Patrick_Stiady on Mar 31, 2009 6:51 AM

    Thank you for the advice. I am developing an application where the user is not computer literated, so that I have to limit functional key as many as possible and only allow several keys to be active. For example, I don't want TAB key to change the focus, instead I want TAB key to do nothing.
    I have tried keybinding, because I think this is the most relevant, but somehow I failed to recognize which component should be bound with keybinding. I have tried to change the input map of the component that receives the focus when the GUI is displayed (cmbPCode) as can be seen on my first post. I also tried to change the input map of the root pane. Both are not successful.
    Now, I wonder whether
    1. it does not work because the key is not consume()?
    2. Or should I use key listener, which I would only use if keybinding were unable to serve my goal?
    3. Or should I learn how to intercept key on the glass pane?
    4. Is keybinding able to nullify default action, such as changing focus by TAB key? I am asking this, because I'm going to nullify other important key such as ENTER key.
    Thank you for any guidance,
    Patrick

  • Want the mouse behave the same way as a tab key

    Hello,
    I am using abap webdynpro. one of my requirements to automatically put the user in insert mode on numeric fields.  That is when the user clicks in a numeric field we want the field to be highlighted.  As soon as the user types something in the field we want the field  to be cleared so that the user overwrites the data.  Basically we want the mouse behave the same way as a tab key.  highlight the field and clear it as soon as you start typing. 
    is this possible?

    As mentioned this is not possible.
    however, I would be wary of trying to overcome a standard functionality "deficiency " like this by implementing an island. If you take this path - all your custom applications will behave differently from the SAP standard ones - which is not really an ideal situation.
    Instead, add your concern to the sticky at the top of this forum - the functionality to "clear" a field (or select all on field on entry which is what is happening with the tab selection) might be added in future releases.
    I think however, that you'll find that the "select all on tab" behaviour is an browser "functionality" rather than anything specifically that SAP has implemented - if you try using a different browser, you may not find the same thing happening (although with the browsers I've checked it does).
    The same thing happens with any HTML forms - just try yourself. e.g.[external site with details on HTML forms and input fields|http://www.w3schools.com/html/html_forms.asp]

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why is chartItem.itemrenderer == null during effect?

    I'm using the itemRollOver and itemRollOut events of a
    BarSeries to affect the bars themselves by making them slightly
    transparent:
    private function mouseOutHandler(event:ChartItemEvent,
    chart:ChartBase):void {
    event.hitData.chartItem.itemRenderer.alpha = 1;
    this.dispatchEvent(event);
    private function mouseOverHandler(event:ChartItemEvent,
    chart:ChartBase):void {
    event.hitData.chartItem.itemRenderer.alpha = .5;
    this.dispatchEvent(event);
    I've also set a SeriesInterpolate as the showDataEffect for
    the BarSeries. Both work fine separately, but if the effect is
    running and I mouse over one of the bars, it throws an error saying
    Cannot access a property or method of a null object reference.
    Through a series of trace statements, I determined that the
    null object reference was event.chartItem.itemRenderer. I have no
    idea why that reference goes null during the effect. Anyone know
    why or have an idea for a workaround?

    Hi,
    There are 2 ways to enforce a column to not allow a null value.
    SQL> alter table dept modify ( dname not null );
    and
    SQL> alter table dept add constraint dept_d_not_null CHECK( dname is not null );
    The first method will implicitly do the 2nd one (with a different constraint name), but not vica versa. Also, only for the 1st method will the column be listed as not nullable by the describe command, which is being picked up in the nullable column within the all/dba/user_tab_columns views.
    In the case of Workspace Manager, the commitDDL procedure is transferring the check constraint, which enforces the not null properly, but it does not currently also define the column as not null as in the 1st method. This is a behavior that can be changed, if needed.
    Regards,
    Ben

  • Why was the open link in new tab option removed in favor of a right click? This is inefficient and a step backwards in functionality.

    This was an option on previous versions of Firefox and its annoying to right click to open in a new tab when it was a native function in prior versions.

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Why did the icons under my 'Layer' tab change appearance?

    The above image shows a layer of curves with a masks.
    Why did the mask change its appearance? Normally it's a blank square.
    Even the links have changed (I believe they were thinner previously).
    I might've pressed something and I don't know how to go back. I haven't
    updated anything yet, so it shouldn't be because it's a newer version of
    Photoshop.

    Here's how it looks. I'll try adjusting something...but I never touched any
    of the settings

  • How to set current row in table after use tab key on inputText

    Hello all,
    My first post .., I'm newbie in ADF and I will try to explain my problem.
    For the moment we use ADF 11g (11.1.1.4), in a jsff page I have a table with an inputText column.
    On the valueChangeListener of the inputText, I invoke a method in a viewScope bean which call an EJB method, make some services in the EJB on the line modified. After that I refresh the VO and the table (because others values on the line have been modified) and reset the focus on the same inputText modified by the user with javaScript because focus was lost after refresh.
    So far, everything works fine.
    When I use the arrow keys to change the selected row in the table, it's work fine (focus is still in the next or previous inputText), but if user try to use tab key to change the current line, the inputText on the next line have the focus but the current row of the table is not changed (I think it's normal).
    My question : how can I change the current row after tab key pressed in this case ?
    I don't know if it's really clear, not easy to explain, don't hesitate to ask more details.
    Thanks in advance.

    Frank Nimphius wrote:
    Hi,
    My question : how can I change the current row after tab key pressed in this case ?
    Use a client event to listen for the keyboard entry and intercept the tab. The use af:serverListener to call the server to set the rowKey on the table and issue a PPR for the table to re-paint
    See sample 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    to learn about how to use the client listener and server listener
    FrankHi,
    Thanks a lot for your advices, I used the client and server listener
    I used this code on the method call in order to change the selection after key tab pressed, I don't know if it can be easier, but it works.
              if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("START changeSelectedRow");
              RowKeySet oldRowKeySet = myTable.getSelectedRowKeys(); // get oldRowKeySet
              if (oldRowKeySet == null) {
                   if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("oldRowKeySet is null");
                   return;
              RowKeySetImpl newRowKeySet = new RowKeySetImpl(); // The new RowKeySet use to change the selectedRow
              DCIteratorBinding bindingIterator = ADFUtils.findIterator(MY_ITERATOR);
              bindingIterator.setRangeSize(-1);
              // set the new index of the current row.
              int index = bindingIterator.getCurrentRowIndexInRange();
              if (index < bindingIterator.getAllRowsInRange().length - 1) {
                   index++;
              bindingIterator.setCurrentRowIndexInRange(index);
              // get the current row after changed the index
              Row currentRow = bindingIterator.getCurrentRow();
              if (currentRow != null) {
                   ArrayList nextLst = new ArrayList(1);
                   nextLst.add(currentRow.getKey());
                   newRowKeySet.add(nextLst);
                   // set the new selectedRow
                   myTable.setSelectedRowKeys(newRowKeySet);
                   SelectionEvent selectionEvent = new SelectionEvent(oldRowKeySet, newRowKeySet, myTable);
                   selectionEvent.queue();
                   AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
              if (LOGGER.isDebugEnabled()) {
                   LOGGER.debug("END changeSelectedRow");
    Best Regards
    Benjamin

  • How to determine the positioning order when using tab key?

    Hallo,
    in my jspx-page i want to define the order which the cursor jumps when the user is using the tab key.
    i don't know how to? in html there i can use tabindex. which way i must go?
    Any help is appreciated.

    I found that tabindex is not applicable. But i think it is an important point for better handling.
    Is there no easy way to do it?

  • Why is the "Show my windows and tabs from last time) option in Options- General is grayed out and will not let me restore previous sessions?

    After updating to Firefox 6, the option in the Options-> General section to "Show my windows and tabs form last time" is grayed out and will not allow me to set it. If I go to the Firefox homepage, the option does not appear, nor does it appear if I go under the History or Firefox tab.
    I tried to follow the directions on this website on the Session Restore page, but that seems out of date or just not helping.
    I even went to the about:config (about:session restore does not work) and there was nothing I saw that would work

    Firefox 6 seems to change your settings in Tools Options Privacy to "Never remember history". Once you change this to "Remember history" it will restore your previous session, as long as the setting in Tools Options General Startup is set to "Show my windows and tabls from last time"
    Bad idea Mozilla - installing 6 should pick up your settings from 5. This problem will confuse many users.

  • Why is the image brighter after converting H264 to Apple Prores 422 in Compressor ?

    Hello -
    Very strange situation, keep reading please!
    I am using Compressor to convert H264 1080p footage from a D600, to Apple Prores 422HQ for editing. Normal.
    I am using the default Quicktime Settings named "Apple Prores 422 (HQ)".
    The converted file is a bit brighter than the original... Why is this even possible! I find this a bit problematic because I'm loosing some details in the whites, at a way too early stage for signal alterationt!
    So I tried different other stuff that you will find interesting:
    • changing gamma correction in the codec settings had no effect
    • I can see the change happening already in the Preview window
    • and this is the best one : if I apply a resize, to anything, like 1919 X 1079, or 1280 X 720... then the color change does not occur, even when exported! If I apply a resize to the same size, then the output is brighter again.
    I am proof checking in Quicktime 7 of course, with "FCP compatibility" enabled and disabled.
    I know this is a hot topic and there are many unsolved aberrations like this around this topic, but maybe there is something I don't get ?
    Thanks

    Apple are so thoughful for making us loose the discussion we clicked on after we log in..
    Alex CVideo > I am so happy that you wrote about this
    Yes: this is the exact problem. Very nice screencap, this is exaclty it (even if I said it 2 times now).
    I have a little secret for you:
    I read in another discussion saying that he had this problem too.
    The only time I ever did in the entire Internet.
    here it is :
    this guy re-installed her entire system
    mac os + final cut systems
    and this time it worked.
    Right now I prefer to convert to 1079p than risk this entire operation even it it worked 100% lol
    At least not right now
    but maybe you will be boosted up enough to give it a try
    Good luck to all of us  and thanks again to Apple for these great moments we spend together talking about their wonderful mysteries

  • Why does the waveform disappear after editing in Sound Booth?

    It happens consistently with CS4 on 2 different computers. I right-click the audio track and select Edit in Adobe Sound Booth, and SB opens the audio for editing. I edit the audio, and it updates the audio. I know it does, because when I play back the edited section, it's correct. But the waveform is gone! I tried playing around with the display style -- disable and enable waveform, keyframes, etc. -- but the audio track doesn't display anything. I have to exit out of Premiere and re-start it to see the waveform again.
    Anyone else experience this?
    Also: when editing the audio in SB, is there a way to substitute the PP audio track with a multi-track? I know I can export a multitrack as an .aiff and import it into PP, but I was wondering if there's a way to link it.

    Thanks for responding, but the thread you mentioned seems to be about a mirror-image problem: waveform not appearing in Sound Booth. In my case, SB is working fine and displaying the waveform properly, which is why I posted my question in this forum, instead.
    The problem I'm having is the waveform not appearing in PPro. This doesn't seem to be a case of "it isn't a bug, it's a feature", because exiting and restarting PPro makes the waveform reappear. So it looks like it is a bug. Unless I'm doing something wrong or have a conflict somwhere.
    BTW, I used to use Audition, but it had too many hardware issues and wouldn't run under 64-bit Windows. Have you tried it under Vista x64, or with dynamic links to PPro or After Effects? It seems that PPro, AE and Flash have been designed to work with SB rather than Audition.

  • Why did the "x" to close a tab disappear?

    In the past there was an "x" on the active tab to allow the tab to be closed.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Why does the sound stop after about 10 minutes? I like to listen to lectures, etc. and find it very annoying to have to press the on/off button to restart it every 10 minutes. Couldn't find a way to extend playing time in settings.

    I like to listen to lectures, etc. and find it very annoying to have to press the on/off button to restart it every 10 minutes. Couldn't find a way to extend playing time in settings. Any suggestions? This is my first iPod and I am ready to take it back if I am unable to extend the playing time. Frustrating!

    Rosapeas wrote:
    I like to listen to lectures, etc. and find it very annoying to have to press the on/off button to restart it every 10 minutes. Couldn't find a way to extend playing time in settings. Any suggestions? This is my first iPod and I am ready to take it back if I am unable to extend the playing time. Frustrating!
    I can imagine that is frustrating as heck.  My daughter has one of these and I know for a fact hers does not turn off after 10 minutes because I have to turn it off for her every night after she has fallen asleep.  Below is what Apple has to say about it from a troubleshooting standpoint.
    "If music stops when the iPod nano screen turns off m Make sure the earphone port is free of debris. m Make sure the earphone or headphone connector is pushed in all the way. To see an illustration, go to support.apple.com/kb/ts3700."
    Are you using aftermarket ear buds or speakers when you listen to these lectures???  If so maybe it has something to due with a compatibility issue.

Maybe you are looking for