Model change

Can a model be replaced using the same method as replacing a view? If I have a view and a model to replace from the same ActivitySpace should they be in seperate packages?

Model change is slightly different (and not documented) from the view change. However, it can be done.
Here are the steps you need to follow:
1. Create a project with the new model class. This can be in same project as the view.
2. The new model class needs to extend (Java term) the original Model. It can be a modified copy of the original model.
3. The Create() method needs to return the newModel class.
4. Then follow the same steps as view replacement to deploy the new model, i.e change customactivityspace.xml etc..
Hoep this helps!
Vanita
Staples.
------- James Atkins wrote on 7/26/05 8:00 AM -------Can a model be replaced using the same method as replacing a view? If I have a view and a model to replace from the same ActivitySpace should they be in seperate packages?

Similar Messages

  • Data modeler saving Physical model changes not saved

    I am using version 2.0.0.584.
    The bug fix list contains: 8722310: Save does not save physical model changes
    Hovever I still see unexpected behaviour.
    I created a physical model for "Oracle database 10g" and allocated a couple of tables to a different tablespace.
    I saved the physical model via Physical model--> right mouse button --> save all.
    I saved the model with File--> save
    I close the model.
    After opening, the physical model is not available anymore.
    After Physical model--> right mouse button --> open (for Oracle 10g) the contents are not the same anymore.
    Tablespaces with name "TableSpace3" and "TableSpace4" are added and objects belong to this tablespace.
    We do not have currently a workaround for this behaviour.
    Can anyone help?
    Thanks
    Edited by: 793016 on 06-Sep-2010 03:10
    Edited by: 793016 on Sep 6, 2010 12:14 PM

    Hi Philip,
    default tablespaces were defined and I removed this. It did not have a positive effect.
    Checking the log files was a good idea.
    The log file contained errors about files which could not be found on the system.
    I will do some additional tests and let you know.
    Thanks.
    Kind regards,
    Maurice

  • Using CVS in SQL Developer for Data Modeler changes.

    Hi,
    I am fairly new to SQL Developer Data Modeler and associated version control mechanisms.
    I am prototyping the storage of database designs and version control for the same, using the Data Modeler within SQL Developer. I have SQL Developer version 3.1.07.42 and I have also installed the CVS extension.
    I can connect to our CVS server through sspi protocol and external CVS executable and am able to check out modules.
    Below is the scenario where I am facing some issue:
    I open the design from the checked out module and make changes and save it. In the File navigator, I look for the files that have been modified or added newly.
    This behaves rather inconsistently in the sense that even after clicking on refresh button, sometimes it does not get refreshed. Next I try to look for the changes in Pending Changes(CVS) window. According to the other posts, I am supposed to look at the View - Data Modeler - Pending Changes window for data modeler changes but that shows up empty always( I am not sure if it is only tied to Subversion). But I do see the modified files/ files to be added to CVS under Versioning - CVS - Pending Changes window. The issue is that when I click on the refresh button in the window, all the files just vanish and all the counts show 0. Strangely if I go to Tools - Preferences - Versioning - CVS and just click OK, the pending changes window gets populated again( the counts are inconsistent at times).
    I believe this issue is fixed and should work correctly in 3.1.07.42 but it does not seem to be case.
    Also, I m not sure if I can use this CVS functionality available in SQL Dev for data modeler or should I be using an external client such as Wincvs for check in/ check out.
    Please help.
    Thanks

    Hi Joop,
    I think you will find that in Data Modeler's Physical Model tree the same icons are used for temporary Tables and Materialized Views as in SQL Developer.
    David

  • [CS3] Whats the best way to track model changes? Document Observer? Selection Observer?

    Hello,<br /><br />Usecase I am working on needs to track following events:<br />1. A page item was created/deleted/resized/moved/etc..<br />2. A text was inserted/deleted<br />3. A page was created/deleted<br /><br />Since the list is quite broad I am wondering if there are known best practices to follow. <br /><br />I have tried attaching to Command manager via Document Observer:<br /><br />  InterfacePtr<IDocument> iDocument(this, UseDefaultIID());<br />  InterfacePtr<ISubject> iSubject(iDocument, UseDefaultIID());<br />  iSubject->AttachObserver(ISubject::kRegularAttachment,this, IID_ICOMMANDMGR, IID_IMYDOCOBSERVER);<br /><br />Then during "update" call:<br /><br />  if (protocol != IID_IHIERARCHY_DOCUMENT) break;<br /><br />  ICommand* iCommand = (ICommand*)changedBy;<br />  if (iCommand->GetCommandState() != ICommand::kDone) break;<br /><br />  const UIDList itemList = iCommand->GetItemListReference();<br />  if (itemList == nil || itemList.IsEmpty()) break;<br /><br />  ClassID commandClassID = ::GetClass(iCommand);<br />  if(commandClassID.Get() == kAddToHierarchyCmdBoss || kPlacePICmdBoss) {<br />      // do something at new item creation<br />  }<br /><br />Problem is "kAddToHierarchyCmdBoss" is not just the one command that is sent while creating a new item. There are dozen others and hence I am not sure if I am watching the right one.<br /><br />Second I tried implementing a selection observer and hope to use HandleSelectionAttibuteChanged. A quick search didnt resulted in any suite that lets me implement my use cases.<br /><br />I was inclined towards command observer because thats at low enough level (and right above database layer) allowing me to trap all model changes.<br /><br />I am not looking for a specific answer/code but more of a guideline how to approach the problem.<br /><br />Suggestions? Comments? Thanks in advance

    There is no silver bullet, and while the command mgr can be useful to find out what's going on in general, it is definitely not the place for own dispatching. You'll have to revisit every command before and after execution, and plenty obscure sub-commands nested within larger sequences. If you handle them all this will seriously degrade performance. One good use of command manager notifications is to yield and inspect the matching commands for UI activities, from within your debug build.
    In your quoted update(), when you check the protocol you're anyway already discarding the command mgr notifications, because the protocol then would be IID_ICOMMANDMGR. Probably you already have attached a bunch of other protocols?
    Comparing to previous versions, the changes listed in 1) are pretty simple, you just subscribe at the document boss, and listen for the protocols IID_IHIERARCHY_DOCUMENT, IID_ITRANSFORM_DOCUMENT, eventually IID_IGEOMETRY_DOCUMENT, IID_IPATHGEOMETRY_DOCUMENT, IID_IINVALSHAPE. These also have an advantage that you get a meaningful theChange (rather than the command mgr's kBeforeDoMessageBoss and alike) and can dispatch on those.
    If you have a previous version of InDesign, there used to be a wildcard protocol IID_IPMUNKNOWN that would yield any notifications on the subject so you could dump them out and search for details. Apparently for performance reasons this was removed with CS3 after some plugins used it for release code, IMO Adobe should just have limited the feature to the debug build.
    Besides to observers, the service registry is full of other notifications, have a look the the cross reference in sdkdocs/html/classISignalMgr.html for the most prominent ones. One exception here, 2) For text edits, you won't even use observers or signals but kEditCmdPreProcessService / IID_ITEXTEDITPREPROCESS service instead, or its sister IID_ITEXTEDITPOSTPROCESS.
    3) Probably you'll again observe the kDocBoss for IID_ISPREADLIST and IID_IMASTERSPREADLIST.
    Regarding selection observers and suites, we're talking model changes here so please just forget about them in this place. Selection observers are used to follow the selection from within UI widgets, such as a palette or control strip.
    Regards,
    Dirk

  • Forecast model changing

    Hi
    For a material in material master iam maintaining forecast model as "J".
    The other parameters maintained are:
    selection procedure-2
    tracking limit-4
    reset automatically- is checked
    model selection-A
    ALPHA FACTOR AND GAMMA FACTOR MAINTAINED
    initialization-X
    Now when i run the program RMPROG00, then in isee that the forecast model changes to "blank" or "D", "S". pls tell me how this change is happening?

    Hello Dinakar,
    I am also facing the similar issue, Are you able to get rid of this issue.
    regards,
    JPS

  • ADFf 11g, view does not refresh when model changes

    Hi,
    I am really missing something about adf faces (jdev 11.1.1.3.0).
    I have a web app, with jspx, tabpanels and pojo data controls.
    Since there is a complex logic to open new pages/tabs, sometimes I have to open new pages/tabs programmatically, and also sometimes I have
    to refresh the model behind pages/tabs programmatically.
    When I say "programmatically" I mean that the model refresh is not started by an user action on the webpage, but is started by logic in the model layer
    (say, for example, you receive a JMS message and you want to reload the content of an entire page).
    I can succesfully update the model, using debug println I can see the model is updated, but there is no way I can update the view.
    I tryed with the "addPartialTarget" code and so on, but it does not work.
    I've also bought and read "Oracle JDeveloper 11g Handbook" and "Oracle Fusion Developer Guide", but I can't find anything that can help me.
    Can someone explain me: what am I missing? I am sure there is some concept in ADF Faces I missed: this framework is too
    big not to offer what I need, so I miss something for sure.
    I hope to get an answer, I hope Shay reads this too.
    Thanks all.

    Hi,
    Active Data Services (chapter 20 in the book) is what would allow you to synchronize the screen with the model changes. The problem you face is because the data you see is what is stored in the iterators of the binding layer. An alternative solution to using ADS is to use an af:poll component that refreshes the display component when the model has changed. For this your model exposes a method that returns a time stamp that changes whenever the data has changed. Upon af:poll expiring, it calls a managed bean method, which - through the ADF binding layer - checks for the time stamp and compares it with a local saved copy (whenever the time stamp has changed, the client side will e.g. write it to the viewScope or pageFlowScope). If the time stamp has changed, the managed bean re-executes the method populating the iterator for the UI components and then issues a partial refresh of the component(s). Instead of PPR'ing each component in turn, you can try setting the ChangeEventPolicy property of the iterators to ppr"
    This should solve the problem. The latter example is also explained in chapter 20, but for ADF BC
    Frank

  • Bug: BasicComboBoxUI incorrectly does setSelectedIndex(0) on model change

    The case with bugId=4150466 "BasicComboBoxUI incorrectly does setSelectedIndex(0) on model change" seems to be closed and fixed. I'am using JDK1.3, and a version of BasicComboPopup is * @version 1.31 12/04/99, and the problem still exists, the bug is not fixed.
    So, the question is if the bug is fixed.
    Thanks alot!

    public void actionPerformed(ActionEvent ae)
    // When the button is clicked, create a new model and set it.
    // would expect the selected item to change to the result
    // of getSelectedItem in the model (i.e. "Three"). Instead
    // it is always set to "One".
    m_combo.setModel(new MyModel());
    It's because BasicComboPopup$PropertyChangeHandler.propertyChange()allways calls JComboBox.setSelectedIndex(0), but in my case it should call setSelectedIndex(x);

  • Model change 5 days after purchase

    5 days after my wife purchased a basic MacBook (80 GB HD), Apple announced yesterday) that the basic model now has 120 GB HD, a significant change. Would you have expected her to have been made aware of the upcoming change before her purchase? Perhaps that might be naive thinking on my part. Perhaps this is just the way things are with rapid changes in computer marketing...??

    H_S,
    The "pointing" was my interpretation of "additions" to a listing of "My Posts". I wasn't able to configure this reply to include a link to my personal posts, so I copy/pasted a portion of "My Posts". Under the 1. and 3. posts, there was inserted a LINK to "Using Apple Discussion>>Feedback about Discussions"...the link led me to the instructions relative to this Forum, and by implication (my interpretation), to Discussions in general. My interpretation of the presence of these links was that the Hosts had inserted them as a reminder of the rules of usage. Here's what I found on "My Posts":
    +1. Re: Model change 5 days after purchase+
    *Using Apple Discussions » Feedback about Discussions,* Feb 29, 2008 7:06 PM
    +I am "replying" to my own post for a VERY IMPORTANT reason: It has been pointed out to me (ve...+
    +2. Re: Reinstall 10.5.1+
    +Mac OS » Mac OS X v10.5 Leopard » Installation and Setup, Feb 29, 2008 4:28 PM+
    +You may find your answer here:+
    3.
    + Re: Model change 5 days after purchase+
    *Using Apple Discussions » Feedback about Discussions,* Feb 29, 2008 3:43 PM
    +I certainly agree...thanks for your reply.+
    nhuser
    The bold lines are the links (on "My Posts" page); the italics are the rest of the entries.
    "Terms of Use" has this entry regarding Submissions:
    +"Post constructive comments and questions. Unless otherwise noted, your Submission should either be a technical support question or a technical support answer. Constructive feedback about product features is welcome as well. If your Submission contains the phrase “I’m sorry for the rant, but…” you are likely in violation of this policy."+
    I appreciate your support. You certainly have much greater experience in Discussions than I have. I agree that my post should have been in a different forum. I would be interested in your read on this. Do you think I was correct in interpreting this as a critique by the Hosts?
    Message was edited by: nhuser

  • KNotePrefCmdBoss and direct model change warning

    Here is what I am doing to set some of the note settings...
    InterfacePtr<ICommand> notePrefCmd(CmdUtils::CreateCommand(kNotePrefCmdBoss));
    InterfacePtr<INotePrefCmdData> notePrefData(notePrefCmd, IID_INOTEPREFCMDDATA);
    notePrefCmd->SetItemList(UIDList(::GetUIDRef(GetExecutionContextSession())));
    notePrefData->Set(UIDRef::gNull, colorIndex, showTips, spellCheckNote, findReplaceNote, displayChoice, noteColorChoice);
    notePrefCmd->SetUndoability(ICommand::kAutoUndo);
    CmdUtils::ProcessCommand(notePrefCmd);
    When I do this I get an assert warning that I'm making a direct model change.  Why?

    Here is what I am doing to set some of the note settings...
    InterfacePtr<ICommand> notePrefCmd(CmdUtils::CreateCommand(kNotePrefCmdBoss));
    InterfacePtr<INotePrefCmdData> notePrefData(notePrefCmd, IID_INOTEPREFCMDDATA);
    notePrefCmd->SetItemList(UIDList(::GetUIDRef(GetExecutionContextSession())));
    notePrefData->Set(UIDRef::gNull, colorIndex, showTips, spellCheckNote, findReplaceNote, displayChoice, noteColorChoice);
    notePrefCmd->SetUndoability(ICommand::kAutoUndo);
    CmdUtils::ProcessCommand(notePrefCmd);
    When I do this I get an assert warning that I'm making a direct model change.  Why?

  • Cocoa Bindings don't update UI when Model changes?

    Has anyone found a solution to this problem? I read all the Troubleshooting info at Apple and just about wore out the KVC/KVO and Cocoa Bindings documentation.
    I've got one TableView that updates fine, and two others that don't when the Model is modified.
    The Model: class VoterController, the variable is an NSMutableArray "playerArray" that contains 7 NSMutableDictionaries, read in from an XML plist. I set the @property and the @synthesize for it. You can't bind a Model, so no bindings for the array.
    The View: an NSTableView with one column. The column is bound to the voterController listed below.
    Column Binding:
    Bind To: voterController
    Controller Key: arrangedObjects
    Model Key Path: playerName (a key in each dictionary)
    The Controller: an NSTableViewController, class NSTableViewController.
    Bindings for this controller:
    Bind To: mainController
    Model Key Path: playerArray (the NSMutableArray)
    Controller "mainController":
    A simple NSObject (not an Object Controller despite the name) that has its class set as "VoterController", which is the class of the Model object (the array of dictionaries).
    Now the thing that has me stumped is that this NSTableView reads the Model data fine but does not respond to changes in it. In other words, if I delete one of the array elements, it does not show up in the View until I re-launch the app and it reads the changed XML from disk.
    Even more strange, I have another tableView that DOES dynamically change as I change values for any of the keys in the dictionaries that are the elements of the array. This working tableView has the bindings for each of its 5 columns as follows:
    Bind To:voterController
    Controller Key: arrangedObjects
    Model Key Path: playerName, voteCount, role, etc. for each column. Each of these is a key in the dictionaries. If I change programmatically any of the values of these keys, they are immediately changed in the View.
    Apple says the most common reason for Views not updating is non-KVO compliance in the model property. I have the array @property and @synthesize compiler directives, and one View updates and another does not, on the same controller.
    I dunno - I don't expect a solution but any tips I will rush off and try. Thanks in advance.

    "Is this because VIs which use ConfigData_v1.ctl were not loaded into memory at the time when I made the change to the typedef?"
    In short: Yes. Only the callers in memory are updated.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Transporting Org model changes (deletions) from DEV to QAS

    Hi All,
    We have Org model created in CRM Development server, which was earlier transported to Quality server using the report program RHMOVE30.
    Now, based on unexpected changes in the requirement, in Development server we had to make some changes to the Org model, like added new org units and positions (which is fine, as we can do a delta transport), but the problem is that, we have also deleted few Org units and positions in Development server (these org units are already available in Quality), now my issue is that, how can transport these changes to Quality (is is possible delete the org units in Quality using a Transport Request).
    Is there a way out to even transport the deleted entries, so the they get deleted in Quality as well.
    Thanks in advance for your time.
    Regards

    Hello
    Maybe you create a transport request including your new org structure and run report RHMOVE30. There is also a flag "delete objects" in that report that can can delete individual org units.Just enter the org unit ID and click on that flag.
    Transporting org structure is very delicate. My personal advice is: If there are not too many orgs to delete and the task can be done manually in your QA system, just do it manually.
    Regards
    Joaquin

  • Distribution Model - Change Maintenance System

    I need to change the maintenance system for a distribution model - anyone know where to do this?
    <b>History</b>
    We have a sandbox( HRX ) that is a copy of an older production system. We have since upgrade to ECC6.0 and changed the names of our development servers from HRD to HUD.
    When I modify the distribution model in HUD and transport to HRX, HRX still thinks HRD is the maintenance system, not the new ECC 6.0 server.
    Where can the maintenance system be changed?
    points for answers.
    thanks,
    rp

    Hi,
    You may want to define the logical system and assign client to logical system (transaction SALE) for HUD. Then you need to delete the old distribution model of HRD and create new one for HUD (transaction BD64) and generate the partner profile (WE20).
    Also ensure the RFC connection was setup properly.
    Regards,
    Ferry Lianto

  • Easily Data model change.

    Sometimes we need to change project data model after creating Bussiness Comp diagram.
    fro example Add new column to the table, change relation etc.
    So we need to change entity, view and application module objects
    Is there any easy way to make this.
    such as refresh model from database.
    we are using 10.1.3.1.
    thanks...

    Right clicking on an entity object and choosing synchronize with database will look up the DB structure for any changes related to the entity and will allow you to add/delete attributes as needed.

  • Customized table cell renderer doesn't work after table data model changed

    Hi:
    I have a jtable with a custimized table cell render (changes the row color). Everything works fine while the data model is unchanged. I can change the row color, etc. However, after I delete one row or any number of rows in the table, the data model is updated and the custmized table cell renderer is not being called anymore while jtable is rendering on its cells. Seems like the table cell render is no long associated with the jtable. Is this a known problem? Any help would be appreciated.
    Thanks

    I am having the same problem. Has anybody solved this issue?
    Thanks

  • Update JTree when model changes

    Hello!
    I'am doing a webbrowser that stores the history in a JTree that is visible in EAST in the browserFrame.
    The history is updated when a link is clicked or it is typed in the addressbar. Everything works for the moment but it's quite ugly i guess...
    For now i do tree.updateUI(); in the view everytime I have added a node, but I want to remove tree.updateUI() and update the view automaticly whenever the model has changed.
    Is nodesWereInserted() the right function to use?
    I have tried to use this listener in the HistoryModel(after removing tree.updateUI()) but the JTree acts very strange then...
    thanks for any help :)
    Fredrik
    ////////////THE LISTENER THAT I HAVE TRIED TO USE IN THE HistoryModel
        class MyTreeModelListener implements TreeModelListener {
            public void treeNodesChanged(TreeModelEvent e) {
                DefaultMutableTreeNode node;
                node = (DefaultMutableTreeNode)
                         (e.getTreePath().getLastPathComponent());
                 * If the event lists children, then the changed
                 * node is the child of the node we've already
                 * gotten.  Otherwise, the changed node and the
                 * specified node are the same.
                try {
                    int index = e.getChildIndices()[0];
                    node = (DefaultMutableTreeNode)
                           (node.getChildAt(index));
                } catch (NullPointerException exc) {}
                System.out.println("The user has finished editing the node.");
                System.out.println("New value: " + node.getUserObject());
            public void treeNodesInserted(TreeModelEvent e) {
                DefaultMutableTreeNode node;
                node = (DefaultMutableTreeNode)
                         (e.getTreePath().getLastPathComponent());           
                int index = treeModel.getIndexOfChild(node.getParent(), node);
                treeModel.nodesWereInserted(node.getParent(), new int[] {index});
            public void treeNodesRemoved(TreeModelEvent e) {
            public void treeStructureChanged(TreeModelEvent e) {
            }////////////////THIS IS THE VIEW CLASS
    package freebrowser.gui;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.TreeSelectionModel;
    import freebrowser.model.HistoryModel;
    import freebrowser.model.LinkInfo;
    import freebrowser.types.Browser;
    * This class represents a JTree with a domainname as children and url:s in its leafs.
    * @author dalen
    public class HistoryTree implements TreeSelectionListener {
        private JTree tree;
        private Browser browser;
        private ArrayList currentPageLinkInfo;
        private URL browserCurrentUrl;
        private HistoryModel historyModel;
        public HistoryTree(Browser browser, HistoryModel historyModel){
            this.browser = browser;
            this.historyModel = historyModel;
            //Create a tree that allows one selection at a time.
            tree = historyModel.createJtree();
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
            //Listen for when the selection changes.
            tree.addTreeSelectionListener(this);
         * This function is called when a link has been clicked.
         * @param url - The <code>url</code> that has been clicked
        public void newPageClicked(URL url){
            Iterator it = currentPageLinkInfo.iterator();
            while(it.hasNext()){
                LinkInfo info = (LinkInfo)it.next();
                if(info.getUrl().equals(url)){
                    historyModel.addNode(info, browserCurrentUrl);
                    tree.updateUI(); /// this is what I want to remove!
                    break;
         * Adds a node to the tree if a url has been entered in the addresfield
         * @param url
         * @param title
        public void addressBarPageEntered(URL url, String title) {
            LinkInfo info = new LinkInfo(url, title);
            browserCurrentUrl = url;
            historyModel.addNode(info, browserCurrentUrl);
            tree.updateUI();/// this is what I want to remove!
         * Helps the <code>HistoryBar</code> to be updated with the current url.
         * @param url - The curren <code>url</code> in the browser
        public void setHistoryCurrentPage(URL url){
            LinkInfo info = new LinkInfo(url, null);
            currentPageLinkInfo = info.getLinkInfos();
            browserCurrentUrl = url;
         * Invoked by TreeSelectionListener when a node has been clicked
        public void valueChanged(TreeSelectionEvent e) {
            DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
            if (node == null) return;
            Object nodeInfo = node.getUserObject();
            if (node.isLeaf()) {
                LinkInfo linkInfo = (LinkInfo)nodeInfo;
                System.out.println(linkInfo.getUrl());
                browser.setURL(linkInfo.getUrl());
         * Function to recieve the JTree
         * @return The <code>tree</code>
        public JTree getTree() {
            return this.tree;
    }/////////////THIS IS THE MODEL CLASS
    package freebrowser.model;
    import java.net.URL;
    import java.util.Enumeration;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    * This class holds the infomation of the historytree. It is stored in an array containing <code>Nodes</code>.
    * @author dalen
    public class HistoryModel {
        private DefaultTreeModel treeModel;
        private DefaultMutableTreeNode rootNode;
        public HistoryModel() {
            rootNode =  new DefaultMutableTreeNode("L�nkHistorik");
            treeModel = new DefaultTreeModel(rootNode);
         * Adds a node in the right place in the model
         * @param info - The <code>info</code> to be added.
        public void addNode(LinkInfo info, URL browserCurrentUrl) {
            //l�gg till noden p� r�tt plats i modellen
            Enumeration e = rootNode.children();
            DefaultMutableTreeNode category = null;
            DefaultMutableTreeNode urlLeaf = null;
            boolean newNodeSet = false;
            while(e.hasMoreElements()) {
                DefaultMutableTreeNode childToCheck = (DefaultMutableTreeNode)e.nextElement();
                //check if the domainname already is in the tree
                if(childToCheck.toString().equals( browserCurrentUrl.getHost()) ){
                    urlLeaf = new DefaultMutableTreeNode(info);
                    treeModel.insertNodeInto(urlLeaf, childToCheck, childToCheck.getChildCount());
                    newNodeSet = true;
                    break;
            if(!newNodeSet) {
                category = new DefaultMutableTreeNode(new LinkInfo(null,browserCurrentUrl.getHost()));
                DefaultMutableTreeNode parent = (DefaultMutableTreeNode)treeModel.getRoot();
                treeModel.insertNodeInto(category, parent, parent.getChildCount());
                urlLeaf = new DefaultMutableTreeNode(info);
                treeModel.insertNodeInto(urlLeaf, category, category.getChildCount());
            ((DefaultMutableTreeNode)treeModel.getRoot()).setUserObject("L�nkhistorik (dom�ner: " + rootNode.getChildCount() + "  l�nkar: " + rootNode.getLeafCount() +")");
         * Creates and returns a JTree built on the model from createJTreeModel()
         * @return The new JTree
        public JTree createJtree() {
            return new JTree(treeModel);
    }

    Nevermind, I solved it by my self :)
    added treeModel.nodeChanged(node); after insertNodeInto()

Maybe you are looking for