Grouped table doesn't update underlying JTree

I'm having a problem getting a groupable JTable to work. The JTable has an underlying JTree which is used to group on a specific column. The table can expand and retract it's nodes perfectly however when I call JTree.expandPath it doesn't update the table view immediately, instead it updates after a call to showVisible on a dialog.
My question is; when does the view of a table get updated after having called expandPath on a tree. From my perspective at least it seems it doesn't expand it immediately on the call to expandPath. Do I need to a function like refresh to model?
Thanks for the help!
EDIT: My assumption is it has something to do with the same reason why doing :
setVisible(false)
setVisible(true)
and stepping through those statements doesn't produce changes in the UI. Is there some kind of commit method in Swing?
Edited by: alex.p on 29-Nov-2010 03:58

I've used this basic code structure before:
DefaultTreeModel model = (DefaultTreeModel)tree.getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot();
root.add(new DefaultMutableTreeNode("another_child"));
model.reload(root);If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
http://homepage1.nifty.com/algafield/sscce.html
Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
http://forum.java.sun.com/help.jspa?sec=formatting

Similar Messages

  • Tree table doesn't update the data for checkboxes properly

    Hi All,
    I'm trying to use tomahawk tree table component to render a tree column of items along with checkboxes in other columns. Note that all the other columns except tree column are generated dynamically inside backing bean and checkboxes too added to the column dynamically.
    All works fine until it comes to the valuechangelistener.Inside valuechangelistener if try to fetch the component id from the event, it doesn't return the correct id and instead always return the id that corresponds to the last node of tree.
    Has anyone successfully used tree table to display input components? or any workaround my problem would be much appreciated.
    The code where I'm adding my dynamic columns as well as checkboxes is as below.
    for (int i = 0; i < roleNames.size(); i++) {
    HtmlSimpleColumn column = new HtmlSimpleColumn();
    htmlTree.getChildren().add(column);
    // Create header
    HtmlOutputText header = new HtmlOutputText();
    header.setValue(roleNames.get(i));
    column.setHeader(header);
                   ValueExpression valueExpression = FacesContext
    .getCurrentInstance().getApplication()
    .getExpressionFactory()
    .createValueExpression(
    FacesContext.getCurrentInstance().getELContext(),
    "#{treeItem.name}",
    Object.class);
    // Create check box
    HtmlSelectBooleanCheckbox checkbox = new HtmlSelectBooleanCheckbox();
                   // add the hidden input elements
                   HtmlInputHidden input = new HtmlInputHidden();
                   HtmlInputHidden input1 = new HtmlInputHidden();
                   // Bind changeRolePresent method in to listen to the
    // role permission change
                   checkbox.setImmediate(true);
    Class<?>[] parms = new Class[] { ValueChangeEvent.class };
    System.out.println("Adding value change listener to permission grid");
    MethodExpression valueChangeListener = FacesContext
    .getCurrentInstance().getApplication()
    .getExpressionFactory().createMethodExpression(
    FacesContext.getCurrentInstance()
    .getELContext(),
    "#{customTreeBean.changeRolePermission}",
    String.class, parms);
    checkbox
    .addValueChangeListener(new MethodExpressionValueChangeListener(
    valueChangeListener));
    input.setValueExpression("value", valueExpression);
                        input1.setValue(roleNames.get(i));
                   valueExpression = app
    .getExpressionFactory()
    .createValueExpression(
    FacesContext.getCurrentInstance().getELContext(),
    "#{treeItem.roleDetailsList["+i+"].selectedRole}",
    Object.class);
    checkbox.setValueExpression("value", valueExpression);
                   //checkbox.setOnclick("selectAll(this)");
                   checkbox.getChildren().add(input);
                   checkbox.getChildren().add(input1);
    column.getChildren().add(checkbox);
    In above code there will be four columns added dynamically and for each column a checkbox component is being added here. Rest JSF takes care to create checkboxes for each row of tree. But one thing that I noticed while viewing source that JSF is creating duplicate names for checkboxes in a batch of four (So for say if I had 3 rows, every row of checkboxes had same set of four ID's assigned, like ID1, ID2, ID3, ID4)
    Please help,
    Umesh

    Hi!!!
    Could you see this document : http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=BUG&p_id=3970326
    It describes the exactly bug, but there isn't solution...

  • ECC 6-  Table that gets updated when Currency Translation to Group Currency

    Hi All,
    I would like to know which table gets updated with the Values when we execute tcode "FAGL_FC_TRANS"?
    I would like to see the values that system posted during April 09, May09 etc for each GL that was Translated into Group Currency using the tcode.
    under SE16, i tried checking for all tables with FAGL*, but could not figure out the exact table.
    Thanks
    Vijay

    BKPF gets updated - The T Code you will in those entries in BKPF is FBB1, Business Trans. will be RFBU and Ref. Transaction will be BKPF.
    BSEG gets updated - Activity Type RFBU.  You will not see any non-zero amounts in transaction currency and local currency.  In group currency, you will see a non-zero number.
    FAGLFLEXA gets updated - Transaction RFBU, Ref. Transaction BKPF - No amounts in TC and LC.  Amount in GC.
    FAGLFLEXT gets updated - Transaction RFBU, Ref. Transaction BKPF.  Again, nothing in TSLxx and HSLxx.  Amounts in KSLxx (xx being the period in which you have posted translation).

  • External table authentication not updating user group changes

    Hello
    I have a question..
    In OBIEE, i am using external table authentication. I have user and user group tables where users and groups are stores.. Every Time I create a new user and assign them to a group, these records get inserted immediately to these tables with the correct user and group ID that matches with each other.. Then in my initialization block I have the query that fetches the user name and psswd as well as groups names..
    All these are working at the initial user creation. For example, when I create user A and assign it to group A, the DB table has all of the records inserted correctly. When I log in to OBIEE using User A login, I see it is assigned to Group B.
    The problem comes when I change the user A from Group B to Group C. When I did that, although the DB table gets updated correctly, OBIEE session seems to still be the previous one. As a result, when I log in the second time, I see the user A is still assigned to Group B instead of Group C.. This seems to be cached..
    I double check these user tables in OBIEE, none of them are cache enabled.. The connection pool setting of the isolation level is set as default..
    When I reinstall OBIEE all over again and re-log in the first time, this User is now assigned to Group C..
    So seems to be that it is caching issue.
    How should I go about solving this issue
    Appreciate in advance

    Make sure you check the box for 'Required for authentication' and also 'Use caching' should not check.
    Edited by: Srini VEERAVALLI on May 15, 2013 9:05 PM

  • Since OS X update, under Citrix Reciever, the keyboard doesn't work anymore. The trackpad does. Please help.

    I have a Macbook air. OS X 10.9.5. Since OS X update, under Citrix Reciever, the keyboard doesn't work anymore. The trackpad does. Please help.

    The following from the Citrix forums indicates others are having the same problem and that one has opened a case number with Citrix: http://discussions.citrix.com/topic/355864-os-x-1095-safari-71/

  • Custom field in BP_PDBGP table not getting updated

    Hi,
    i am working in Contract management in SRM 7.0 Pack 6. I have aadded a custom field in partner table which appears in the partner table of contract header. It is a checkbox. when i check it the value gets saved in BBPPDBGP table for the first time after that if i try to uncheck it the value is not getting updated. I checked in the BBP_DOC_CHANGE_BADI, the value which is getting passed is correct but it doesn't update the databse accordingly.
    Any suggestions? is this a standard bug?
    Neha

    Hi Virendra,
    Thanks a lot for your suggestion.
    Where should i check? If the data passing to BBP_DOC_CHANGE_BADI is correct then that means at the webdynpro side there should not be any problem and as per the standard after doc_change also it should save properly. i also checked the badi there is not dependent coding done over there. DOC_SAVE badi is also inactive for contract business object. Hence, i am not getting any clue where could be the problem.
    Let me know if you want more details inorder to analyse this problem.
    Thanks &Regards,
    Neha

  • Mobility Group Table *MUST* be populated in each WLC in same mobility group

    For what it's worth,
    I recently discovered that when you have multiple controllers and want to implement Mobility Groups, more is needed than simply entering the same Default Mobility Group Name for each controller within the mobility group. The following is required:
    a) The IP address of the "Virtual" interface on each controller must be identical on each controller within the mobility group.
    b) The Default Mobility Group Name must be identical on each controller within the mobility group (case sensitive).
    c) The mobility table must be populated with an entry for each controller within the mobility group.
    Otherwise, you will see some inexplicable behavior such as:
    * LWAP access points refusing to change to a different controller, even if their primary controller is explicitly set and the LWAP is rebooted.
    * LWAP access points unable to find any other wireless controller other than the one pointed to by the "CISCO-LWAPP-CONTROLLER" DNS entry (presumably, this would also be the case if DHCP Option 43 is used to point the LWAP to a controller). Once the first controller reaches its max. capacity of LWAPs, no more LWAPs can join.
    * Even MASTER CONTROLLER MODE has no effect.
    Cisco TAC was able to explain the great mystery of the Mobilty Group Table to me. However, unless you know your problem is related to mobility groups issues, you might not know to start there (I know I didn't).
    The least difficult method I have found for populating the mobility group table is as follows:
    Build a text file with one entry for each controller in the mobility group as follows:
    Log into the GUI for each controller and selecting: Controller -> Mobility Management -> Mobility Groups, click the "EDIT ALL" button and copy the MAC and IP address from the text box into a text file using NOTEPAD. Repeat this for each controller, creating a new line for each:
    The format for the entries is as follows:
    00:1a:6c:91:22:A0 192.168.20.44
    00:1a:6c:91:22:B4 192.168.20.45
    Once the text file is completed (one entry for each controller in the mobilit group), click the EDITALL button and copy the entire contents of the text file and paste it into the text box on the controller GUI, click the APPLY button and click Save Changes. Repeat for each controller.
    Again, make sure that the following settings are IDENTICAL in each of the controllers in the Mobility Group:
    * The IP address of the "virtual" interface ( Controller -> interfaces ) must be the same on all controllers.
    * The "Default Mobility Domain Name" ( Controller -> General ) must be identical on each controller in the mobility group (note: the Mobility Domain Name is case sensitive).
    After making changes directly to the controllers, a "refresh from controller" in the WCS might be needed to get the WCS to attempt to synchronize itself with the controllers.
    Here is a link to the 4.2 Wireless Controller Configuration Guide which discusses this in greater detail.
    http://www.cisco.com/en/US/products/ps6366/products_configuration_guide_chapter09186a00808e638b.html
    It is unfortunate that there are currently no mechanisms in the WCS 4.2 to make these changes in bulk (i.e.: The WCS has no Controller Template to do this).
    Also, if you ever need to replace a controller, you will need to update the Mobility Group Table in each controller in the Mobility Group (since the tables will have the MAC address of the old controller which will now be different in the new replacement controller).
    Despite having used the "unified" product for some time now, there are still surprises from time to time. I just thought that I would share my experience for those who may want avoid it and/or who may be encountering any of odd the behavior described above.
    - John

    Hi John,
    Nice work with this very relevant info! Please post a short reply here so that we can give this the nice rating it deserves :)
    Thanks again!
    Rob

  • Wage group is not getting updated in confirmation.

    Hi
    When confirmation is done through idoc ( type Conf21) then wage group is not getting updated in confirmation table AFRU.
    When confirmation is done through co11n then it gets updated.
    How to get it updated when confirmation is done through idoc.

    Hi,
    In we02 Kindly check if the required field is correct mapped in the IDOC.
    Reg
    DSk

  • My MacBook doesn't update and can't support my iPhone 4., My MacBook doesn't update and can't support my iPhone 4., My MacBook doesn't update and can't support my iPhone 4.

    My MacBook doesn't update and can't support my iPhone 4., My MacBook doesn't update and can't support my iPhone 4., My MacBook doesn't update and can't support my iPhone 4.

    The last update for 10.4 took it to 10.4.11. To upgrade to 10.5 or 10.6 you have to buy the install disk for that OS. You can upgrade from 10.4 to 10.6 with no problems as long as you have at least 1gb of RAM. Any program that runs under 10.4 will run under 10.6.

  • My Music doesn't update

    I use iTunes Match and purchase most music through iTunes.  Whenever I go to my music and look at my music is almost always doesn't contain recently purchase music or playlists I have added.  Often for days it doesn't update.  Sometimes powering off and back on the apple tv will help but it seems to be very difficult to get it to refresh or show purchases.  If I go to Top Music and look at a album I purchased it shows Play almost immediately so it knows I purchased it, but the playlists and artists and albums etc under my music is never accurate without multiple attempts.  Any suggestions how to fix this it's super frustrating.

    Okay, mine now works here is what I did.
    plug in the iPhone, iPad etc
    in iTunes select the phone or iPad
    Under Summary uncheck "Sync with this....."
    Under "Music" uncheck the "Sync Music"
    Let it remove all the songs, dont worry it will come back no problems.
    Once that is all done all the music on the phone or ipad should be gone.
    Now check them both back on and everything should copy back onto it.
    Working now !!!!!

  • RE: DataField, update underlying data via TOOL,Express

    John,
    does it work if you mix the "CopyfromClipboard" method with the "PlaceValueinDisplayedField" ?
    If this is not the correct solution to you problem, could you please specify "where" it does not work ?
    Thanks a lot indeed.
    Best regards
    /Stefano
    Stefano POGLIANI Fort&eacute; Software Consultant
    E-Mail : [email protected] Tel : +33.0)450201025
    Fax : +33.(0)450200257 Mobile : +33.(6)08431221
    Visit the Fort&eacute; Web Site : http://www.forte.com/
    Ducunt fata volentem, nolentem trahunt....
    -----Original Message-----
    From: John Hodgson [SMTP:[email protected]]
    Sent: Wednesday, July 02, 1997 8:39 PM
    To: [email protected]
    Subject: DataField, update underlying data via TOOL, Express
    In TOOL code we PasteText() into a DataField, but the underlying data
    object does not get updated until the user interacts with the GUI.
    That causes problems if we need to use the underlying data object's
    value immediately after the paste. How can we:
    force an update of the underlying data object and
    ensure that the update goes through before our method call returns,
    i.e., ensure that if the update is via Forte events, those events
    are handled before returning.
    The context is a calendar lookup button that pastes into an adjoining
    DataField.
    John Hodgson |Descartes Systems Group Inc.|[email protected]
    Systems Engineer|120 Randall Drive |http://www.descartes.com
    |Waterloo, Ontario |Tel.: 519-746-8110 x250
    |CANADA N2V 1C6 |Fax: 519-747-0082

    Well, I think I have answered my own question, but I will leave it here in case anyone else has the same problem. 
    So, as far as I have been able to track down, it all went wrong when I was running through the connection wizard. 
    Under the section titled "Creating the Data Source" is describes how to find your database file and create the appropriate connection string. However, on my version of VS Express 2010 . It offered me a prompts , saying something like, "would you like to
    move this database file into the application directory and change the connection string" this sounded very sensible to me, so I said yes.
    All proceeded accordingly. And the database file now appeared in the solution explorer. 
    The app config file said that the connection string was 
    Data Source=|DataDirectory|\Database1.sdf"
    I presumed this would be interpreted correctly by the rest of the app, as it was generated by VS.
    But it didn't, what I cannot understand is how no error was generated. And data seemed to pull
    into the bound controls. 
    But I have been testing it for a while now. and it seems that if I manually override the config file with the actual directory where the file exists , then there is not a problem. Data is retained in the file 
    This is more of a VB.net question, but I couldn't find it in the drop down. I will try and move it there now
    Thanks guys for your patience. 
    p.s. RSingh , the code I posted above did come from the SaveItem_Click event
    handler

  • Batch Processing doesn't update files in Premiere Pro CS5.5

    Hi,
    I'm not sure if this question should be under 'Audition' or 'Premiere Pro', but I'm selecting a large range of audio clips (from a wedding ceremony) and sending to Audition from Premiere (selecting 'Edit in Adobe Audition')
    When the clips appear in the files section of Audition I select 'Batch Process', drop them in and make the batch process start. When everything is finished and the files are automatically saved, I head over to Premiere to see if the wav's have updated - but nothing. Everything is exactly the same.
    Any help would be great?
    I'm not adding any prefix's etc to the filename, and I'm selecting 'overwrite existing files' and 'same location as original files'.
    Cheers,
    Thomas

    Hi Durin,
    Sorry for the delay, had a couple of deadlines to meet and ended up doing the hundred-or-so clips one-by-one in audition to get it done.
    That's the issue exactly, I go back to Premiere after doing the batch process (and they all auto-save) but Premiere doesn't update the waveform or in fact the audio doesn't show the changes I've just made. The strange thing is that if I do them one by one, then Premiere recognizes the changes and I can get on with it.
    The steps I take are: 1) Drop the clip in the timeline, do a bunch of editing (occasionally nesting and multi-cam editing a sequence). 2) Right click and Edit in Audition 3) Open Batch Process in Audition 4) Drag drop all the files just sent to Audition from Premiere, into the Batch Process section 5) Run batch process 6) Go back to Premiere and see if it's updated in the timeline. I wait, and wait, but nothing. Everytime.
    I'm thinking it's something simple I've clicked, but have no idea what. Either that or it's some sort of bug issue.
    I will be upgrading to CS6 creative cloud soon, hopefully that'll fix it.
    If you have any ideas, I'd love to hear them. Otherwise, thanks for trying.

  • Found 5.04 update under library/receipts but have fcp 6.04

    I was looking into uninstalling FCP 6.04 and reinstalling it to hopefully clean up some kinks and I found "fcp 5.04 update" under library/receipts. Should I trash this? I use to have FCP 5 and have a project currently on my desktop that originated as FCP 5 and am having problems with it in FCP 6- the Motion sequences have been altered for some strange reason. I have NVIDIA GeForce 7300GT graphics card-
    original to this MacPro. I read that "Final Cut Studio is not compatible w/ integrated Intel graphics processors". Does this affect me? Do I need a new graphics card?
    Thanks for your guidance.

    it's just a receipt and its harmless to your current install
    if you are going to do the uninstall / reinstall thing you could do worse than check out Jon Chappel's FCS Remover app .... it may save you a world of pain
    http://www.digitalrebellion.com/fcs_remover.htm
    .. and No, your MacPro doesn't have an integrated graphic chipset so that warning shouldn't concern you

  • HR Tables are not updated due to compression error

    We have a custom program that program used to copy data from Production system to other QA systems. The program uses the FM
    Table_decompress to decompress the file downloaded from Production and update the HR tables like PA* series in QA.
    While uploading the those tables from the file it updates half of the tables  and other tables are
    not updated as FM Table_decompress produces a exception saying "Compression error". what would be the problem here?
    Edited by: Ganesh Kumar on Feb 2, 2011 10:14 AM
    Edited by: Ganesh Kumar on Feb 2, 2011 10:25 AM

    I have provided some information below that may help.
    Step 1. Update the device using VZ Access manager. Instruction below:
    http://support.vzw.com/clc/devices/knowledge_base.html?id=14636
    Step 2. Unplug the device (if tethered), restart the computer, and try another USB port (if applicable).
    Step 4. Deleting and recreating dial-up connections.
    http://support.vzw.com/clc/devices/knowledge_base.html?id=23830
    Step 5. Try to connect.
    Step 6. (If Step 5. Fails) Disconnect, unplug the device, completely uninstall the current version of VZ Access Manager, and restart  the computer.
    Step 7. Download VZ Access Manager from our website www.vzam.net
    -On the main page, select Supported Devices on the left hand side.
    -Under the Data Devices like for Verizon Wireless USB 760 (second from the bottom of the row)
    -Select the link under the Windows 7 column for the Verizon Wireless USB 760
    -Click Download Now and Save to the desktop
    Step 7. Install VZ Access manager using the downloaded file
    -Follow the step up instructions
    -Plug in the device when prompted
    -Try to connect
    I hope this helps.

  • Grouping Table Columns

    Hi All,
    In my webdynpro application we need to "Group Table Column".  I am using NWDS 2.0.9. The "Insert Group COlumn" feature is not there in NWDS 2.0.9. If so how ca i group my table columns. Can anyone provide me a solution for this.
    Regards,
    Divya

    Hi Divya,
    I have done this in my application too.
    I have used two tables,
    The things you need to do is,
    1. Create a scroll container
    2. Create 1st table,
    3. assign the columns coming under its header.
    4. create the 2nd table,
    5. assign the rest of the columns under that header.
    6. Table properties to be set
    7. Now make footer visible false for both the table.
    8. visible no of rows = -1
    9. assigning same context or model node to both the tables will make it as one table itself, and selecting row in one table will also select same row in other table.
    10.Dont keep wrapping as true in any table cell editor, because if there occurs any wrapping in one table, the alignment of rows will be disturbed for both.
    11.And using scroll container instead of footer will not create the scrolling event of footer in the application.
    This will solve your problem.
    Mohak.

Maybe you are looking for