Focus handling when TableCellEditor is removed

Hi,
I have a problem finding out what the exact focus behavior is when in JTable the editor is closed. There seems to be a difference when using editor components that are panel based and editor components that are not panel based. When I use a Component (returned by TableCellEditor.getTableCellEditorComponent) like a JTextField the focus goes back to the JTable so that it indicates the focused cell (the one that was edited). When I use a component based on JPanel the focus traverses when closing the editor to the next component in the focus cycle (after the JTable).
Did anyone every see this behavior before, what is the cause of this and obviously how can it be specified that the behavior for the JPanel should be the same as for the JTextField.
The environment that I am working on is IBM JDK 1.4.2 for Windows.
If anybody has a good reference for documentation on focus handling and especially how to debug it, this is also very welcome!
Many thanks,
Marcel

Does anyone have a good understanding of this method in Component:
    public void removeNotify() {This seems like the method that orchestrates the focus change when a component is removed from another component. I don't see why JPanel instances are handled differently from JComponent instances.
By the way this solves my problem a bit: adding these lines of code in an overridden implementation of removeEditor in subclass of JTable (just before setting editorComp to null):
    if (editorComp instanceof JPanel){
       requestFocusInWindow();
    }But the problem is that in this case first the focus goes to the next component and then it goes back to the table. (which could have side effects if the next component changes state because of receiving the focus).
Any comments would be welcome.
Thanks,
Marcel

Similar Messages

  • Problems with ADF in JDeveloper 10.1.2 - Focus Handling in a Table

    Hi there,
    we have a problem with the focus handling in a JClient-Table
    (embedded in a JScrollPane).
    When I insert a new row in a table (e.g. with 2 columns),
    and insert in the second column some text and
    (while the focus is still in the second column) then
    add again a new row to the table, the text from the
    "lost-focus-column" is moved to the new row.
    Example:
    Add row 1 (columns Name, FirstName) => Result:
    Row 1: Smith John
    Add row 2 => Result:
    Row 2: <empty> John
    Row 1: Smith <empty>
    Is that a bug of the framework or does anyone know a workaround for that
    behaviour ?
    Tanks a lot...
    Cheers, Claus

    Hi,
    problem solved. It's a Swing problem. The following line of code is neccessary:
    dataTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    (dataTable is the jTable).
    Unfortunately other Swing-Components (e.g. JTextField) don't have that
    client property :-(.
    Cheers,
    Claus

  • When attempting to remove the Filmconvert plugin from my machine I noticed my adobe\common\plug-ins\CS5.5\MediaCore folder had Vanished !

    When attempting to remove the Filmconvert plugin from my machine I noticed my adobe>common>plug-ins>CS5.5>MediaCore folder had vanished ! and there was also no folder for my cc version at all ? so digging deeper i noticed a large amount of my after effects plugins were installed separately in my applications folder ! I m very confused as to how this has happened and was wondering if anything like this had happened to any1 else ? and how to get everything back to normal ?
    Im now worried theres something wrong with my bios on my Mac and i don't no why my plug-ins would have vanished from where they should be installed? as they still work fine in the actual software itself.

    If you are on a Mac the Library folder is hidden. You have to jump through some hoops to get there.

  • Error received when trying to remove a BW bookmark

    Hello All,
    When trying to remove a BW bookmark with hierarchy for the Month/Year the following error is received: "System error in program SAPLRRK0 and form SORTING_PRUEFEN_01-04-"
    Please advise.
    Regards,
    Keith

    Not answered

  • I want to uninstall and then reinstall Firefox but I can't uninstall it. Nothing happens when I click remove in program access and defaults and the helper.exe file in the firefox uninstall dir doesn't do anything either.

    I want to uninstall and then reinstall Firefox but I can't uninstall it. Nothing happens when I click remove in program access and defaults and the helper.exe file in the firefox uninstall dir doesn't do anything either.

    "program access and defaults" is not the place to remove programs in Windows. You need to go to the control panel and click on Add and Remove programs. For instructions on how to uninstall Firefox, see [[Uninstalling Firefox]]

  • Behaviour of key figures when characteristic is removed

    Hi guys,
    in one query I have built it is a business requirement to use key figures where a summation doesn´t make sense and where it does. A summation doesn´t make sense when for example the current credit limit for the current month is necessary. I have also turn over where the summation makes sense for the current month.
    For the key figures where it doesn´t makes sense I am using the function "last value" because the last value of for example June 2011 is needed.
    It works only when the characteristic 0CalMonth is present in the query. When 0CalMonth is removed on those key figures a summation is done.
    For example:
    0Comp_Code 0020 0Customer 01 0CalMonth 05.2011 Credit limit 40000
    0Comp_Code 0020 0Customer 01 0CalMonth 06.2011 Credit limit 10000
    Result Credit limit 10000
    Removing of 0CalMonth
    0Comp_Code 0020 0Customer 01 Credit limit 40000
    0Comp_Code 0020 0Customer 01 Credit limit 10000
    Result Credit limit 50000
    My wish is to show the current value of 06.2011 even if 0CalMonth is removed:
    0Comp_Code 0020 0Customer 01 Credit limit 40000
    0Comp_Code 0020 0Customer 01 Credit limit 10000
    Result Credit limit 10000
    Is that possible when key figures are used in one query where summation and last value is needed?
    Does anybody know this problem and can provide a suggestion for a solution?
    Thank you in advance!
    Edited by: saplaz on Jun 20, 2011 3:08 PM

    Hi
    You can create new key figure for this & add it in a cube. In update rule for this key figure you can create the 'IF ELSE' formula as required based on the 2 different key figures. Or you can write routine also for this field.
    Thanks & Regards
    Sandeep

  • Listbox focused row when more items selected

    Hi, I have following problem. I'm using ListBox with multiple rows selection enabled. I want to identify the row that's focused even when it's not selected. It's shown on attached pictures.
    I'll appreciate any kind of help
    Bye
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    active_row.vi ‏10 KB
    active_row_example.PNG ‏3 KB
    active_row_example2.PNG ‏3 KB

    Hi Andy,
    I want to know which item was selected as last to draw the correct datafile - last chosen. It would be easy when having ListBox allowing to select only one row, but I want to have opportunity to select more items, when I want to delete more datafiles from memory.
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    ListBox_chose_item.vi ‏18 KB

  • Deploy; JDev grabs focus back when done.

    Is there any way to make JDEV not grab focus back when a deployment is complete?
    ISSUE: A deployment takes minutes. I use my PC to do other things while deployment ( and compiling ) is going on... like email, write on this board, etc.
    I can do this without performance pain cuz I'm running a dual processor.
    While I'm busy typing away JDEV suddenly completes the deployment, grabs focus.. and stuff I'm typing furiously into email gets dropped into wherever the cursor was last sitting in the JDEV source editor!
    For that matter, I've had deployments fail when I'm doing other things... If I deploy and do NOTHING on that PC while deployment is occurring.. it happily completes.
    My only course at the moment is to sit and stare at the screen during deployments.. twiddling my fingers ( no JDEV manuals to read through off my shelf grin ). I'm almost to the point where I need a second computer to avoid losing an hour a day of "work" outside of JDEV.
    JDEV isn't the only critter who does this sorta thing, but it'd be nice if it shared the sandbox more politely.

    Yes, there is a way to do this:
    1) Select your deployment profile.
    2) Right click and select "Properties..."
    3) Go to the "Project" tab.
    4) Click the "Advanced..." button.
    5) Under the "General" tab, UNCHECK "Redirect messages to the message view".
    This will cause messages to be accumulated in a text area that is within the modal dialog. Once you dismiss the dialog you will no longer have access to the deployment messages that were produced. But, JDeveloper will not steal the focus back when deployment finishes in this case, because that dialog stays up until you explicitly close it.
    Concerning your second issue with deployment failing while you're doing something else, can you provide additional details on what kind of deployment profile you are deploying, how you invoke deployment, and what the failure messages are?
    Hope this helps.
    --joj (JDeveloper Deployment)
    null

  • HT3702 was a mistake that I tried to download it my baby that I can do for my account that the new works oh when can I remove it from my account

    was a mistake that I tried to download it my baby that I can do for my account that the new works oh when can I remove it from my account

    Not sure what you are asking - what did you download and what do you want to remove ? If you purchased something that you didn't mean to then all purchases are considered final, but you can try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If you mean something else ... ?

  • [svn:fx-trunk] 11992: Ensure that the textFlow of a RichText always has a " damage" handler when you get it, so that when you mutate the textFlow the RichText updates.

    Revision: 11992
    Revision: 11992
    Author:   [email protected]
    Date:     2009-11-19 10:29:17 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Ensure that the textFlow of a RichText always has a "damage" handler when you get it, so that when you mutate the textFlow the RichText updates.
    QE notes: None
    Doc notes: None
    Bugs: SDK-23869
    Reviewer: Carol
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23869
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as

    Hey jerzeyzfynest,
    Unfortuantely, no -- Geek Squad Protection plans require that repairs be sought before a product is considered for replacement. This means your current laptop would only qualify for an exchange if one or more of the following conditions are met:
    A factory-authorized technician has determined that repairs cannot be completed
    A factory-authorized technician has determined that replacement parts cannot be obtained
    The unit has accrued two previous qualifying repairs a factory-authorized technician has identified a third qualifying hardware failure
    A detailed overview of this policy may be found in your plan documentation, as well as in the sample brochure available on the following site:
    http://bbyurl.us/TandC
    If your current laptop hasn't been performing up to par, then I'd encourage you to speak with a technician at your local store when you have the chance to do so. Diagnostic services are included in your service plan coverage, so we'd be glad to help find out what's going on.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Receiving an error when trying to remove P00 Security role from the user

    Hi All,
    I am receiving an error when trying to remove P00 Security role from the user.
    After logging on to GRC CUP, clicking on u201CCreate requestu201D, and filling out required information,
    I click on Select Roles/Groups
    On the next screen,
    I click on Existing Roles/Groups
    ERROR MESSAGE appears X Action failed and no roles appear in the box to select for removal.
    Regards,
    Vineet

    Hi Vineet,
    My be your selection is incorrect
    Try this
    in Applicaiton Area -- Select ALL
    Functional Area  -
    Select ALL
    Company           -
    Select ALL
    Role/Profile/Group Names --- Give p00* and execute the report
    if you give only p00 it wont give any result
    Hope this helps
    Thank you,
    Kishore

  • FATAL Error...  When trying to remove Apple Mobile Device Support (AMDS).

    FATAL Error... When trying to remove Apple Mobile Device Support (AMDS) on my windows xp. I tried to update iTunes to update my iPhone software and it told me to uninstall iTunes and AMDS for a newer version. Now I get a fatal error and I can't sync my phone. What should I do?

    FATAL Error... When trying to remove Apple Mobile Device Support (AMDS) on my windows xp.
    We've made some progress with some of those in recent days, Stop. It looks like (with some of them), the trouble is caused by trouble with the HKEYCURRENTUSER registry keys associated with your usual XP user account.
    If that's what is afoot, the following technique may be of some assistance.
    Head into your User Accounts control panel and create a new user account with full administrative rights. Log out of your normal account and log into the new account. (Don't use fast user switching to move between accounts.)
    Inside the new account, head into your Add or Remove Programs control panel, and attempt to uninstall AMDS from there.
    Does the uninstall go through without the fatal error in the new user account?
    If so, *staying in the new user account,* do a complete uninstall of iTunes and related componentry as per:
    [Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP|http://support.apple.com/kb/HT1925]
    (You'll need, in particular, to do the reinstall of iTunes from inside the new account. Experience of the last two cases of this indicates that if you try the reinstall from inside the usual user account, AMDS just silently fails to install.)
    If everything seems to have reinstalled correctly, log out of the new account, and log back into your usual account. Try launching iTunes in your usual account. Does it launch properly in there now?

  • Send a notification to the proxy when he is removed as proxy

    We have a requirement to send a notification to the proxy when he is removed as proxy.
    There is one out of box notification to the proxy when assigned. But could not figure out an option to send a notification when proxy is removed.
    Is there a way?
    Thnx
    Sid
    Edited by: Sidharath on Jun 4, 2012 2:23 PM

    yes, there is a OOTB system property called XL.ProxyNotificationTemplate to tell user that he is a proxy. But as far as I know there is no notification to 'proxy removed' .
    1-You can create a system property and add SQL's into it. Please check this link I replied before: Re: Exception while setting security question
    2-You can create a trigger into database (proxy table=PXD) that start some procedures(including e-mail notification) if proxy user is removed.
    I hope this helps.
    Thiago Leoncio.

  • How are applications handles when Lion installed?

    How are applications handled when Lion is installed?
    1) Are the standard (i.e. App store, phone booth, iPhoto, iCal, etc) automatically reinstalled?
    2) How is iTunes handled? iMovie?
    3) How is Mail handled? Will it automatically reinstall my Contacts, Mail folders with all of my saved emails?
    4) How are 3rd party Apps handled that are located in the Application folder? in a separately created foldeer?
    5) How is Time Machine handled? with all of its past backups?
    Thanks

    If you install over Snow Leopard, you'll get new default Apple apps.
    iLife, iWork, and 3rd-party apps wont be disturbed (although PPC apps will no longer work).
    Mail will be updated, your stuff will be covered..
    Time Machine just continues on.
    By all means, back up first, just in case something goes wrong.
    Also see: Changes in Lion from Snow Leopard

  • My MacBook Pro died suddenly when I was removing a flash drive (LG up3 neon ps4) and is now both unresponsive and unchargable. Is there anything I can do to fix it on my own? (There aren't any apple stores in my current country)

    My MacBook Pro died suddenly when I was removing a flash drive (LG up3 neon ps4) and is now both unresponsive and cannot be charged. Troubleshooting.... Is there anything I can do to fix it on my own? (There aren't any apple stores in my current country)

    Hello antol1n1,
    Sorry to hear your MacBook Pro is not charging or powering on.  Sometimes a System Management Controller reset can help with the following charging and power issues:
    Power
    The computer doesn't respond to the power button when pressed.
    A portable Mac doesn't appear to respond properly when you close or open the lid.
    The computer sleeps or shuts down unexpectedly.
    The battery does not appear to be charging properly.
    The MagSafe power adaptor LED doesn't appear to indicate the correct activity.
    To reset the System Management Controller on your MacBook Pro (with a built-in battery) , you can follow these steps:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    You can find more information in the full article here:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    I hope this helps!
    Best,
    Sheila M.

Maybe you are looking for

  • How to create a Navigation with submenu ? { Mega Navigation Menu} ?

    Please iam playing around with Flach Catalyst, but i cant find how to create a navigation menu with submenus i've created the design in photoshop but i dont know how to do the rest in Catalyst. the Navigation menu that i want is should be more or les

  • Oracle jdbc driver error: oracle.jdbc.driver.T4C8Oall.getNumRows

    Dear All, I encounter this error in my application when I call storedprocedure with spring helper class: StoredProcedure and my env is as follow: spring 2.5.6 oracle 10g oracle jdbc driver:10.2.0.1 websphere portal 5.1 this error is occur from time t

  • How to Reset Emacs Colorscheme

    I'm not 100% sure if this is the right place to post this but here goes: I downloaded a colorscheme from GitHub and put it into the .emacs.d folder (because that's the custome-theme-load-path). I used the M-x customize-themes command to load the them

  • Captivate 7 - link different project

    Hi everyone, I don't know if my question is at the correct location.  I'm sorry if not... I have a problem with my Adobe Captivate 7 project.  It used to be one big e-learning, but now I broke it into different smaller modules.  Module A - Welcome: 

  • REUSE_ALV_GRID_DISPLAY does not show the data

    Hello, I have created a report which show the alv through REUSE_ALV_GRID_DISPLAY. It is working fine on my development server and show the data too. but when it was transported to the production , ALV is showing, but no data in tha alv. I check the d