Does not show the child

I have two trees (tree1 and tree2).I am trying to copy the children of tree1 to tree2. When I display tree2, it shows only the root and not it's children. What might be the problem?
Thanks.
Pavan
See code below.tree1 is displaying fine.
private void initTreeCustomer() {
     //treeRootNodeCustomer_ = new EuamDefaultMutableTreeNode();
     treeRootNodeCustomer_ = (EuamDefaultMutableTreeNode)treeRootNode_.clone();
     initTreeObjectCustomer();
     treeScrollPaneCustomer_ = new JScrollPane( jTreeCustomer_ );
     treePanelCustomer_.add(treeScrollPaneCustomer_, BorderLayout.CENTER );
     treePanelCustomer_.setVisible(false);
private void initTreeObjectCustomer() {
          //Initialize 'Customer' View Tree Object
     if( jTreeCustomer_ == null ) {      
     jTreeCustomer_ = new JTree( treeRootNodeCustomer_ );
     jTreeCustomer_.setCellRenderer( new EuamTreeCellRenderer());
private void showCustomerView() {
          DefaultTreeModel treeModel = (DefaultTreeModel)jTreeCustomer_.getModel();
     for (int i=0;i<treeRootNode_.getChildCount();i++) {
     EuamDefaultMutableTreeNode node = (EuamDefaultMutableTreeNode)((EuamDefaultMutableTreeNode)treeRootNode_.getChildAt(i));
          if(node != null) {
treeModel.insertNodeInto (node,treeRootNodeCustomer_,treeRootNodeCustomer_.getChildCount());
          //treeRootNodeCustomer_.add(node);
}

I forgot.Later I do -
treePanelCustomer_.setVisible(true);
The root is shown but not its children.

Similar Messages

  • Field Explorer in Crystal Reports does not show the same names as Bex Query

    Hi
    I have crystal reports, I can retrieve data from BW Bex Query. But in the field explorer it does not show the names as in the Bex query designer.
    In the Bex query designer a field will have the following technical name 0Debitor and the description is Customer.
    It shows in crystal reports in the field explorer twice as D[0DEBITOR]D and D[0DEBITOR]D. It also does not seperate key figures and characteristics.
    I would like it to display the field explorer as shown in this blog.
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Thanks in advance

    Hi,
    take a look here:
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    make sure you are using the MDX Driver and what happens is that you will see several fields per characteristic. example: one for the key, one for the description, several if modelled for the display attributes
    Ingo

  • HT1338 i lost my iphone and my macbook pro does not show the icloud in system pref. What do i do? how do i download icloud?

    I lost my iphone and my macbook pro does not show the icloud in system pref. how do i get icloud on my mac?

    iCloud is only available in Lion, 10.7. You will have to upgrade to Lion in order to get into iCloud. If you transfered a .mac or .me address to iCloud through mobile me, or you have another device iCloud enabled, then you can log into the iCloud.com website.

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • Report does not show the main section while calling from forms 6i

    Hi
    I am running report from report from forms 6i but is does not show the data in main section, where as the data in the header section is ok.
    But when i run the same report independantly from report builder it show the both header and main section with relevent data.
    pl solve the matter
    thanks in advance

    can you tell me more about this, you might check if you are using different users when you call this report or if the user has all privileges to see all tables in this report

  • My Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    my Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    I change Settings>Privacy>Location Services>Camera to OFF and then ON and the locations start to appear !!!!.
    It seems to be Apple bug.
    Thanks for you efforts

  • I am installing snow leopard on a new drive unformatted but it does not show the disk to install it on.? do i need to format first with one partition?

    I have installed a new drive on my mac book and more ram but the snow leopard install asks which to install the system on but then does not show the drive.
    do I have to partition it and name it first. -- if so just one partition?

    Do this:
    Drive Preparation
    1.  Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    When formatting has completed quit DU and return to the installer.  Complete the OS X installation.

  • ME23n , Does not shows the values correctly in print preview

    Hi,
    When viewing a PO using ME23n , it does not shows the values correctly in the print preview.
    For example;
    This is the vendor & its address.  (check attached image img1.jpg)
    ZERANDIB BUSINESS APPLIANCES
    Number-122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO-04
    When displaying the print preview, it shows only some parts of the above address
    Shows only; (check attached image img2.jpg)
    ZERANDIB BUSINESS APPLIANCES
    PO BOX 41,112,REID AVENUE
    These values are getting from a table called LFA1. I have checked that table & in that table all the values exists correctly.
    I have noted issue is with, having only a single word. (If address or name having only a single word, that is without spaces, it will not going to show in the print preview) -
    In the above example, it is not showing Number-122/A and  COLOMBO-04 (Its a single word. No spaces there)
    If its like --> Number - 122/A   &  COLOMBO - 04 ,  then it will display in the print preview correctly (where there are spaces after - mark)
    check img3.jpg
    If its having more than one word, then it will display correctly in the print preview.  As below;
    ZERANDIB BUSINESS APPLIANCES
    Number - 122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO - 04
    If its 2 or more words, it shows correctly.
    If its 1 word, then its not showing!
    Why it is happening like that? Any ideas how to resolve this issue?
    regards.
    zerandib

    It turns out that this problem went away after the program crashed.  Everything seems to be working well now.

  • Acrobat Pro "save as" function in the file menu does not show the current directory of the file

    I have installed CC but Acrobat Pro gives me headaches.
    The "save as" function in the file menu does not show the current directory of the file but something I have worked on in the past.
    It forces me to navigates through my hard disk for this very straightforward thing in normal conditions. I precise: Acrobat is the only software reacting like that.
    I use Windows7 professional 64bits.

    I use what seems to be the latest version available on the Cloud:
    To illustrate my point, I open a directory with explorer and double-click on the only PDF in there:
    So here it is, open:
    When I do a "Save as", it takes me to a totally different place on the disk!
    Very annoying...
    Thanks for your time!
    JJ

  • My playlists show how many titles are in the playlist but does not show the list of titles

    my playlists show how many titles are in the playlist but does not show the list of titles. Is there a setting that I hit by mistake to hide the content?

    Perhaps you have made one column extra wide and the window isn't currently showing the Name column. Try resizing columns, turning off those that you don't need, or scrolling sideways.
    tt2

  • I have an I phone 4s and I have many contacts in my phone.  However, whne my phone rings or I receive a text, the phone does not show the name of the contact person only the phone number.  I have checked every setting I can think of ?

    I have an I phone 4s and I have many contacts in my phone.  However, when my phone rings or I receive a message.  The phone does not show the name of the caller.  It only shows the phone number that is calling.  I am sure this is a setting problem, but I have checked every setting I can think of.  Any suggestions??

    If you are a Verizon user try this:
    Open the phone and dial *228. This is a Verizon over-the-air programming number.
    When the system answer press 1 for "Program or activate your phone"
    Wait for the call to disconnect. You should get a prompt stating "Settings updated."
    Double tap the Home button to bring up the recently used apps list at the bottom.  Locate the Phone, Message, and Contacts apps, swiping if necessary, and press and hold until they jiggle then press the red minus sign to stop them.
    Wait a 3-5 minutes.
    Try your phone again and see if it's fixed.

  • ' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?

    ' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?

    mardemar wrote:
    ... - the only one without an x delete button.
    What is the name of this App and where did you get it...?

  • File name does not showing the InDesign icon?

    I have got few files from my client and they said it is an InDesign CS2 version file. but the file name does not showing the InDesign icon on the file name, though I have CS2 and I have tried other version too.
    Also I could not open the file in any version.
    Can somebody help me?

    there is no screen shot...
    You must either post a link to it on another server or embed it into a post using the camera icon on the web page like this:

  • HT4352 appletv - the airplay window on iphone 4gs and ipad gen2 does not show the mirroring slider? any one know what im doing wrong?

    appletv - the airplay window on iphone 4gs and ipad gen2 does not show the mirroring slider? any one know what im doing wrong?

    ccooper52
    check out the tips and video at the bottom of this link and see if any of it helps
    http://www.allabouthomeelectronics.com/apple-tv-airplay.html
    Apple policy requires we mention we might benefit or profit somehow by your visit
    please let us know if this helped

  • How do I get the none button to pop up so u don't have to have a credit card for apps? I owe nothing for apps from Apple, NOTHING!? And it still does not show the option "none". If it helps the card I have is a debit.

    How do I get the none button to pop up so u don't have to have a credit card for apps? I owe nothing for apps from Apple, NOTHING!? And it still does not show the option "none". If it helps the card I have is a debit.

    I'm happy you figured it out and just try to keep in mind that not everyone you talk to at support will give the same advice or have the same knowledge. Just like those who contribute to these forums. Sometimes Google is your best friend.
    I agree that Apple could probably make it easier, but as of yet prefer security over freedom. (sound famaliar?)
    Anyway, if you choose to do so, you can leave feedback here:
    Apple.com Feedback
    Apple Support Feedback
    Developer Feedback
    Product Feedback
    QuickTime Feedback
    Search Feedback

Maybe you are looking for

  • To clip or not to clip?

    OK, I'm new to FCE and I just need a recommendation on technique. I know that I should be reading the book, but honestly I have two kids, one 4 years and the other 9 months, and by the time I find time to read the book they'll be in middle school. Si

  • What size is my hard drive?

    I have this MBP: http://support.apple.com/kb/SP582 The one piece of information it doesn't provide is the depth of the internal HD. Does anyone know this, please? I want to know so that I can choose the correct SSD replacement for an upgrade from her

  • Running BizTalk on multiple non-clustered servers. Potential serious issue

    Hi, I have just discovered what has potential to be a fairly large issue in our current BizTalk Architecture. We are running BizTalk Server 2006 R2 on 2 different servers, running Windows Server 2003 R2. These servers are NOT clustered. Instead, BizT

  • Structure enhance ment

    i am enhancing a structure kuweg ..that is i am inserting another stucture into that structure by using appending structure.->and in that i use .include  type <my struc type> tthe problem is i can get the data saved in db tables but they are not comi

  • PC games on MacBook?

    Can I install and play games made for PC on my MacBook? Or will I still have to buy Mac versions of the games? (Eg. The Sims 2 PC version vs. The Sims 2 Mac version). Thank you!